Skip to content

Commit b84d07c

Browse files
committed
APM-4363 update iam policy
1 parent 1857ed7 commit b84d07c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • ansible/roles/create-api-deployment-pre-reqs/templates/terraform

ansible/roles/create-api-deployment-pre-reqs/templates/terraform/iam.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,11 @@ data "aws_iam_policy_document" "deploy-user" {
265265
]
266266
resources = concat(
267267
[
268-
"arn:aws:elasticloadbalancing:${local.region}:${local.account_id}:listener/app/apis-${var.apigee_environment}/*",
269268
"arn:aws:elasticloadbalancing:${local.region}:${local.account_id}:listener-rule/app/apis-${var.apigee_environment}/*",
270269
"arn:aws:elasticloadbalancing:${local.region}:${local.account_id}:listener/app/apis-public-${var.apigee_environment}/*",
271270
"arn:aws:elasticloadbalancing:${local.region}:${local.account_id}:listener-rule/app/apis-public-${var.apigee_environment}/*",
272271
],
272+
[for listener in local.private_alb_listeners : listener.arn],
273273
[for ns in local.short_env_service_namespaces : "arn:aws:elasticloadbalancing:${local.region}:${local.account_id}:targetgroup/${ns}/*"],
274274
[for ns in local.service_namespaces : "arn:aws:ecs:${local.region}:${local.account_id}:service/apis-${var.apigee_environment}/${ns}"]
275275
)

0 commit comments

Comments
 (0)