Skip to content

Commit a613a81

Browse files
authored
Merge pull request #21 from scribd/sns
[PE-5232] Fixing Missing Index Call
2 parents b74cc2d + b838a83 commit a613a81

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

autotagging.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ resource "aws_sns_topic_subscription" "auto_tagging" {
5454

5555
topic_arn = var.sns_topic_arn
5656
protocol = "sqs"
57-
endpoint = aws_sqs_queue.auto_tagging.arn
57+
endpoint = aws_sqs_queue.auto_tagging[0].arn
5858
}
5959

6060
resource "aws_lambda_event_source_mapping" "auto_tagging" {

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ resource "aws_sns_topic_subscription" "this_sns_sub" {
192192

193193
topic_arn = var.sns_topic_arn
194194
protocol = "sqs"
195-
endpoint = aws_sqs_queue.this_sqs.arn
195+
endpoint = aws_sqs_queue.this_sqs[0].arn
196196
}
197197

198198
resource "aws_lambda_permission" "this_lambda_allow_bucket_permissions" {

0 commit comments

Comments
 (0)