Skip to content

Commit 85120af

Browse files
committed
Attempt to fix terraform instability on first apply
1 parent f98f472 commit 85120af

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

infrastructure/instance/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ destroy: workspace
5353
$(tf_cmd) workspace select default
5454
$(tf_cmd) workspace delete $(sub_environment)
5555

56+
graph: workspace
57+
$(tf_cmd) graph
58+
5659
output:
5760
$(tf_cmd) output -raw $(name)
5861

infrastructure/instance/ecs_batch_processor_config.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ resource "aws_iam_role" "fifo_pipe_role" {
258258
]
259259
})
260260
}
261+
261262
resource "aws_iam_policy" "fifo_pipe_policy" {
262263
name = "${local.short_prefix}-fifo-pipe-policy"
263264
policy = jsonencode({
@@ -356,6 +357,10 @@ resource "aws_pipes_pipe" "fifo_pipe" {
356357
log_group_arn = aws_cloudwatch_log_group.pipe_log_group.arn
357358
}
358359
}
360+
361+
depends_on = [
362+
aws_iam_role_policy_attachment.fifo_pipe_policy_attachment
363+
]
359364
}
360365

361366
# Custom Log Group

0 commit comments

Comments
 (0)