mirror of
https://github.com/warmbly/warmbly.git
synced 2026-11-04 08:15:38 +00:00
feat: allow the AWS deployment role to pass the backend and consumer task roles to ECS
This commit is contained in:
@@ -67,8 +67,10 @@ data "aws_iam_policy_document" "github_deploy" {
|
||||
}
|
||||
}
|
||||
statement {
|
||||
actions = ["iam:PassRole"]
|
||||
resources = [aws_iam_role.migration_execution.arn]
|
||||
actions = ["iam:PassRole"]
|
||||
resources = concat([aws_iam_role.migration_execution.arn], flatten([
|
||||
for name in ["backend", "consumer"] : [aws_iam_role.execution[name].arn, aws_iam_role.application[name].arn]
|
||||
]))
|
||||
condition {
|
||||
test = "StringEquals"
|
||||
variable = "iam:PassedToService"
|
||||
|
||||
Reference in New Issue
Block a user