Skip to content

Commit 2bf17d6

Browse files
committed
Make cloudwatch logs extract depend on log group already existing
1 parent 7c38d75 commit 2bf17d6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

aws/waf/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,10 @@ module "cloudwatch_log_extract" {
339339
waf = aws_wafv2_web_acl.main.id
340340
}
341341
destination_sns_topic_arn = aws_sns_topic.waf_logs_sns_subscription.arn
342+
343+
depends_on = [
344+
aws_cloudwatch_log_group.aws_waf_log_group
345+
]
342346
}
343347

344348
resource "aws_sns_topic" "waf_logs_sns_subscription" {

0 commit comments

Comments
 (0)