Fix CI tofu permissions for pr-intent public bucket
Grant CI user bucket-management read/write actions (GetBucket*/PutBucket*) on the public PR-intent bucket so fleet deploy can run tofu apply without AccessDenied.
This commit is contained in:
parent
833264bbe3
commit
7dbedacdff
@ -134,6 +134,19 @@ data "aws_iam_policy_document" "ami_importer" {
|
||||
resources = [aws_s3_bucket.image_bucket.arn]
|
||||
}
|
||||
|
||||
# Needed so CI can manage the public PR-intent bucket (read/update bucket policy,
|
||||
# public access block, versioning, encryption, etc.) during tofu apply.
|
||||
statement {
|
||||
sid = "PrIntentBucketManage"
|
||||
actions = [
|
||||
"s3:GetBucket*",
|
||||
"s3:PutBucket*",
|
||||
"s3:DeleteBucketPolicy",
|
||||
"s3:ListBucket"
|
||||
]
|
||||
resources = [aws_s3_bucket.pr_intent_public.arn]
|
||||
}
|
||||
|
||||
statement {
|
||||
sid = "ObjectReadWrite"
|
||||
actions = [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user