Skip to content

Commit f733d84

Browse files
committed
aws ecr terraform
1 parent bf61820 commit f733d84

File tree

1 file changed

+2
-5
lines changed
  • ansible/roles/deploy-ecs-proxies/templates/terraform

1 file changed

+2
-5
lines changed

ansible/roles/deploy-ecs-proxies/templates/terraform/locals.tf

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ locals {
4545

4646
ecs_service = [
4747
{% for container in ecs_service %}
48-
{% raw %}
4948
{{
5049
(
5150
container
@@ -55,18 +54,16 @@ ecs_service = [
5554
'${local.account_id}.dkr.ecr.eu-west-2.amazonaws.com/'
5655
+ service_id + '_' + container.name
5756
+ (
58-
var.use_ecs_tag && container.name == "canary_canary-api"
59-
? ":ecs-${build_label}"
60-
: ":${build_label}"
57+
"{{ '${' }}var.use_ecs_tag && container.name == \"canary_canary-api\" ? \":ecs-${build_label}\" : \":${build_label}\"{{ '}' }}"
6158
)
6259
}
6360
)
6461
) | to_json
6562
}},
66-
{% endraw %}
6763
{% endfor %}
6864
]
6965

66+
7067
exposed_service = element(matchkeys(local.ecs_service, local.ecs_service.*.expose, list(true)), 0)
7168

7269
private_alb_arn_suffix = data.terraform_remote_state.pre-reqs.outputs.private_alb_arn_suffix

0 commit comments

Comments
 (0)