Skip to content

Commit 9a90215

Browse files
author
Mykhailo Babych
committed
feat: Allow PutObjectAcl on S3 to s3-access-role
1 parent 2b49e1c commit 9a90215

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ In the above diagram, you can see the components and their relations (PostgreSQL
2828
|------|---------|
2929
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.36.0 |
3030
| <a name="provider_helm"></a> [helm](#provider\_helm) | 2.11.0 |
31-
| <a name="provider_kubernetes"></a> [kubernetes](#provider\_kubernetes) | 2.35.1 |
31+
| <a name="provider_kubernetes"></a> [kubernetes](#provider\_kubernetes) | 2.33.0 |
3232

3333
## Modules
3434

main.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,17 @@ data "aws_iam_policy_document" "s3_bucket_policy" {
140140
resources = ["arn:aws:s3:::${each.value}/*"]
141141
}
142142

143+
statement {
144+
sid = "AllowPutObjectAclForGitlabRole"
145+
effect = "Allow"
146+
principals {
147+
type = "AWS"
148+
identifiers = [module.gitlab_role.iam_role_arn]
149+
}
150+
actions = ["s3:PutObjectAcl"]
151+
resources = ["arn:aws:s3:::${each.value}/*"]
152+
}
153+
143154
statement {
144155
sid = "AllowGetObjectAclForGitlabRole"
145156
effect = "Allow"

0 commit comments

Comments
 (0)