diff --git a/terraform/modules/spack_aws_k8s/bootstrap_s3.tf b/terraform/modules/spack_aws_k8s/bootstrap_s3.tf index db4a53e5f..6f7ff3af2 100644 --- a/terraform/modules/spack_aws_k8s/bootstrap_s3.tf +++ b/terraform/modules/spack_aws_k8s/bootstrap_s3.tf @@ -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/*" }