Skip to content

Commit aae8113

Browse files
authored
VED-000 Improve tf stability on first apply (#924)
1 parent 67bb573 commit aae8113

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-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

infrastructure/instance/redis_sync_lambda.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,10 @@ resource "aws_s3_bucket_notification" "config_lambda_notification" {
262262
lambda_function_arn = aws_lambda_function.redis_sync_lambda.arn
263263
events = ["s3:ObjectCreated:*"]
264264
}
265+
266+
depends_on = [
267+
aws_lambda_function.redis_sync_lambda
268+
]
265269
}
266270

267271
# Permission for the new S3 bucket to invoke the Lambda function

0 commit comments

Comments
 (0)