Skip to content

Commit

Permalink
👔 (apply-policy): Adds additional S3 actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bendoerr committed Dec 12, 2023
1 parent 9b8db67 commit 5d8aeb3
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions aws-iam-apply-policy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,15 @@ data "aws_iam_policy_document" "apply_2" {
"s3:CreateBucket",
"s3:DeleteBucket",
"s3:DeleteBucketWebsite",
"s3:DeleteObjectTagging",
"s3:DeleteObjectVersionTagging",
"s3:GetAccelerateConfiguration",
"s3:GetBucketAcl",
"s3:GetBucketCORS",
"s3:GetBucketLocation",
"s3:GetBucketLogging",
"s3:GetBucketObjectLockConfiguration",
"s3:GetBucketOwnershipControls",
"s3:GetBucketPolicy",
"s3:GetBucketPublicAccessBlock",
"s3:GetBucketRequestPayment",
Expand All @@ -347,17 +350,22 @@ data "aws_iam_policy_document" "apply_2" {
"s3:GetMetricsConfiguration",
"s3:GetObject",
"s3:GetObjectAcl",
"s3:GetObjectTagging",
"s3:GetObjectVersionTagging",
"s3:GetReplicationConfiguration",
"s3:ListAllMyBuckets",
"s3:ListBucket",
"s3:ListTagsForResource",
"s3:PutAccelerateConfiguration",
"s3:PutBucketAcl",
"s3:PutBucketCORS",
"s3:PutBucketLogging",
"s3:PutBucketObjectLockConfiguration",
"s3:PutBucketOwnershipControls",
"s3:PutBucketPolicy",
"s3:PutBucketPublicAccessBlock",
"s3:PutBucketRequestPayment",
"s3:PutBucketTagging",
"s3:PutBucketVersioning",
"s3:PutBucketWebsite",
"s3:PutEncryptionConfiguration",
Expand All @@ -366,9 +374,13 @@ data "aws_iam_policy_document" "apply_2" {
"s3:PutLifecycleConfiguration",
"s3:PutMetricsConfiguration",
"s3:PutObject",
"s3:PutObjectTagging",
"s3:PutObjectVersionTagging",
"s3:PutObjectLegalHold",
"s3:PutObjectRetention",
"s3:PutReplicationConfiguration"
"s3:PutReplicationConfiguration",
"s3:TagResource",
"s3:UntagResource",
]
resources = ["*"]
}
Expand All @@ -380,7 +392,7 @@ data "aws_iam_policy_document" "apply_2" {
content {
effect = "Allow"
actions = [
"SNS:GetSubscriptionAttributes",
"sns:GetSubscriptionAttributes",
"sns:CreateTopic",
"sns:DeleteTopic",
"sns:GetTopicAttributes",
Expand Down

0 comments on commit 5d8aeb3

Please sign in to comment.