Skip to content

Commit 7aa17b8

Browse files
infra: add firehose resource dependency for firehose cloudwatch logs (#412)
* infra: add firehose resource dependency for firehose cloudwatch logs * infra: add firehose resource dependency for firehose cloudwatch logs * fix cycle dependency
1 parent 3f279c3 commit 7aa17b8

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

infrastructure/stacks/api-layer/cloudwatch.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,17 @@ resource "aws_cloudwatch_log_group" "firehose_audit" {
1919
Name = "kinesis-firehose-logs"
2020
Stack = local.stack_name
2121
}
22+
23+
depends_on = [
24+
module.eligibility_audit_firehose_delivery_stream.kinesis_firehose_cmk_arn
25+
]
2226
}
2327

2428
resource "aws_cloudwatch_log_stream" "firehose_audit_stream" {
2529
name = "audit_stream_log"
2630
log_group_name = aws_cloudwatch_log_group.firehose_audit.name
31+
32+
depends_on = [
33+
aws_cloudwatch_log_group.firehose_audit
34+
]
2735
}

0 commit comments

Comments
 (0)