Skip to content

Commit 72f69a3

Browse files
author
Gilbert Stawny
authored
feat: add GetQueueAttributes to SQS policy (#11)
For AWS ControlTower integration using SSO, "sqs:GetQueueAttributes" is required. While as of 0.15 this permission is added to the cross-account role policy, it has not yet been added to the SQS Access Policy, causing CloudTrail integration to encounter 403 errors. **How did you test this change?** Replicated issue in a personal account and ControlTower using SSO, updated Access Policy for SQS queue manually to add sqs:GetQueueAttributes permission for the cross-account role, and CloudTrail integration began populating without errors.
1 parent 2392419 commit 72f69a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ resource "aws_sqs_queue_policy" "lacework_sqs_queue_policy" {
5656
},
5757
"Action": [
5858
"sqs:DeleteMessage",
59-
"sqs:ReceiveMessage"
59+
"sqs:ReceiveMessage",
60+
"sqs:GetQueueAttributes"
6061
],
6162
"Resource": "${aws_sqs_queue.lacework_cloudtrail_sqs_queue.arn}"
6263
}

0 commit comments

Comments
 (0)