Skip to content

Commit

Permalink
Add ListBucket permission to enable aws s3 sync
Browse files Browse the repository at this point in the history
Remove non-existent s3 actions

`s3:CopyObjects` and `s3:ListObjects` are not registered as IAM s3 actions. Fixes #977
  • Loading branch information
stephenmsachs committed Oct 31, 2024
1 parent 5883529 commit bd0c3ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions terraform/modules/spack_aws_k8s/bootstrap_s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ resource "aws_s3_bucket_policy" "bootstrap" {
"AWS" : "arn:aws:iam::679174810898:root"
},
"Action" : [
"s3:DeleteObject*",
"s3:GetObject*",
"s3:PutObject*",
"s3:DeleteObject*"
"s3:ListBucket*",
"s3:PutObject*"
],
"Resource" : "arn:aws:s3:::${aws_s3_bucket.bootstrap.bucket}/pcluster/*"
}
Expand Down

0 comments on commit bd0c3ee

Please sign in to comment.