File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ resource "aws_s3_bucket_notification" "this" {
19
19
for_each = var. lambda_notifications
20
20
21
21
content {
22
- id = lambda_function. key
22
+ id = try ( lambda_function. value . id , lambda_function . key )
23
23
lambda_function_arn = lambda_function. value . function_arn
24
24
events = lambda_function. value . events
25
25
filter_prefix = try (lambda_function. value . filter_prefix , null )
@@ -31,7 +31,7 @@ resource "aws_s3_bucket_notification" "this" {
31
31
for_each = var. sqs_notifications
32
32
33
33
content {
34
- id = queue. key
34
+ id = try ( queue. value . id , queue . key )
35
35
queue_arn = queue. value . queue_arn
36
36
events = queue. value . events
37
37
filter_prefix = try (queue. value . filter_prefix , null )
@@ -43,7 +43,7 @@ resource "aws_s3_bucket_notification" "this" {
43
43
for_each = var. sns_notifications
44
44
45
45
content {
46
- id = topic. key
46
+ id = try ( topic. value . id , topic . key )
47
47
topic_arn = topic. value . topic_arn
48
48
events = topic. value . events
49
49
filter_prefix = try (topic. value . filter_prefix , null )
You can’t perform that action at this time.
0 commit comments