mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-04 21:52:12 +00:00
fix(iam): let staging githubdeploy GetObject the release zip
This commit is contained in:
parent
68ad7362df
commit
ad73bd132c
1 changed files with 5 additions and 2 deletions
|
|
@ -292,8 +292,11 @@ data "aws_iam_policy_document" "deploy" {
|
||||||
dynamic "statement" {
|
dynamic "statement" {
|
||||||
for_each = local.use_legacy_s3_policy ? [] : [1]
|
for_each = local.use_legacy_s3_policy ? [] : [1]
|
||||||
content {
|
content {
|
||||||
effect = "Allow"
|
effect = "Allow"
|
||||||
actions = ["s3:PutObject"]
|
actions = [
|
||||||
|
"s3:PutObject",
|
||||||
|
"s3:GetObject",
|
||||||
|
]
|
||||||
resources = ["arn:aws:s3:::${local.eb_bucket_name}/${var.eb_application_name}/*"]
|
resources = ["arn:aws:s3:::${local.eb_bucket_name}/${var.eb_application_name}/*"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue