Skip to content

Commit ccfdb9c

Browse files
author
olamide
committed
Create SSM parameter for the SNS receiving WAF logs
1 parent 99d23c9 commit ccfdb9c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

aws/waf/main.tf

+7
Original file line numberDiff line numberDiff line change
@@ -217,3 +217,10 @@ module "cloudwatch_log_extract" {
217217
resource "aws_sns_topic" "waf_logs_sns_subscription" {
218218
name = "${aws_wafv2_web_acl.main.id}-waf-logs-topic"
219219
}
220+
221+
resource "aws_ssm_parameter" "aws_waf_acl" {
222+
name = "/aws-waf/sns/${var.name}"
223+
description = "Name of the SNS for the AWS WAF logs - ${var.name}"
224+
type = "SecureString"
225+
value = "${aws_wafv2_web_acl.main.id}-waf-logs-topic"
226+
}

0 commit comments

Comments
 (0)