Skip to content

Commit 1b1ca55

Browse files
authored
fix: Timeout if SQS policy created without explicit version in notification module (#321)
1 parent 6917add commit 1b1ca55

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.96.1
3+
rev: v1.98.1
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_wrapper_module_for_each

modules/notification/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ data "aws_arn" "queue" {
8181
data "aws_iam_policy_document" "sqs" {
8282
for_each = { for k, v in var.sqs_notifications : k => v if var.create_sqs_policy }
8383

84+
version = "2012-10-17"
85+
8486
statement {
8587
sid = "AllowSQSS3BucketNotification"
8688

0 commit comments

Comments
 (0)