Skip to content

Commit

Permalink
Enable [email protected] to run s3 sync on a sub-bucket
Browse files Browse the repository at this point in the history
I want to add to the existing buildcache location and run `spack buildcache
update-index` in order to merge the content. Spack needs to be able to list the
content (or use `aws s3 sync`) to run `buildcache update-index`.

This is an extension of #730 to enable `aws s3 sync` additionally to `aws s3 cp`.
  • Loading branch information
stephenmsachs committed Oct 18, 2024
1 parent 0d505c3 commit f6c2454
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 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,12 @@ resource "aws_s3_bucket_policy" "bootstrap" {
"AWS" : "arn:aws:iam::679174810898:root"
},
"Action" : [
"s3:CopyObject*",
"s3:DeleteObject*",
"s3:GetObject*",
"s3:PutObject*",
"s3:DeleteObject*"
"s3:ListBucket*"
"s3:ListObjects*",
"s3:PutObject*"
],
"Resource" : "arn:aws:s3:::${aws_s3_bucket.bootstrap.bucket}/pcluster/*"
}
Expand Down

0 comments on commit f6c2454

Please sign in to comment.