Skip to content

Commit a2c73d2

Browse files
committed
Fixed cyclical tf issue
1 parent 0314093 commit a2c73d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

terraform/sqs_batch_file_created.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ data "aws_iam_policy_document" "batch_file_created_queue_policy" {
99

1010
actions = ["sqs:SendMessage"]
1111
resources = [
12-
aws_sqs_queue.batch_file_created_queue.arn
12+
"arn:aws:sqs:eu-west-2:${var.immunisation_account_id}:${local.short_prefix}-batch-file-created-queue.fifo"
1313
]
1414
}
1515
}
1616

1717
# FIFO SQS Queue - targetted by Event Bridge for new objects created in the data-sources S3 bucket
1818
resource "aws_sqs_queue" "batch_file_created_queue" {
1919
name = "${local.short_prefix}-batch-file-created-queue.fifo"
20-
policy = data.aws_iam_policy_document.batch_file_created_queue_policy.json
20+
policy = data.aws_iam_policy_document.batch_file_created_queue_policy.json
2121
fifo_queue = true
2222
content_based_deduplication = true # Optional, helps with deduplication
2323
visibility_timeout_seconds = 60

0 commit comments

Comments
 (0)