Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ resource "aws_iam_user_policy" "cd" {
Action = [
"iam:PassRole",
]
Resource = module.ecsasg.ecsServiceRole_arn
Resource = compact([
module.ecsasg.ecsServiceRole_arn,
var.execution_role_arn,
])
},
]
})
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -288,5 +288,5 @@ variable "execution_role_arn" {
using Fargate or to reference secrets from SSM Parameter Store.
EOF
type = string
default = null
default = ""
}