Skip to content

Instantly share code, notes, and snippets.

@Israphel
Created March 23, 2022 20:39
Show Gist options
  • Save Israphel/ea30f58e7195cae251c7e89e32aa8e09 to your computer and use it in GitHub Desktop.
Save Israphel/ea30f58e7195cae251c7e89e32aa8e09 to your computer and use it in GitHub Desktop.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "BasePermissions",
"Effect": "Allow",
"Action": [
"s3:ListAllMyBuckets",
"sns:GetSubscriptionAttributes",
"sns:GetTopicAttributes",
"sns:ListSubscriptions",
"sns:ListSubscriptionsByTopic",
"sns:ListTopics",
"sqs:ListQueues"
],
"Resource": [
"*"
]
},
{
"Sid": "SQSPermissions",
"Effect": "Allow",
"Action": [
"sqs:DeleteMessage",
"sqs:GetQueueAttributes",
"sqs:GetQueueUrl",
"sqs:ListDeadLetterSourceQueues",
"sqs:ListQueueTags",
"sqs:ReceiveMessage"
],
"Resource": [
"${lacework_sqs_queue_arn}"
]
},
{
"Sid": "S3BasePermissions",
"Effect": "Allow",
"Action": [
"s3:GetBucketAcl",
"s3:GetBucketLocation",
"s3:GetBucketLogging",
"s3:GetBucketPolicy",
"s3:ListBucket"
],
"Resource": [
"${lacework_s3_bucket_arn}"
]
},
{
"Sid": "S3GetPermissions",
"Effect": "Allow",
"Action": [
"s3:GetObject*"
],
"Resource": [
"${lacework_s3_bucket_arn}/AWSLogs/*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment