File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ locals {
5151 platform = var. architecture == " arm64" ? " linux/arm64" : " linux/amd64"
5252 # A repo that is already in this account's ECR, in this region, is used as it is: nothing is
5353 # copied and no repository is created. Any other repo is mirrored into an ECR repository of its own.
54- repo_in_ecr = var. repo != null && startswith (var. repo , " ${ data . aws_caller_identity . current . account_id } .dkr.ecr.${ data . aws_region . current . region } .amazonaws.com/" )
54+ repo_in_ecr = var. repo == null ? false : startswith (var. repo , " ${ data . aws_caller_identity . current . account_id } .dkr.ecr.${ data . aws_region . current . region } .amazonaws.com/" )
5555 mirror = var. image_uri == null && ! local. repo_in_ecr
5656 use_alias = var. provisioned_concurrency > 0
5757 use_vpc = var. vpc_id != null
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ resource "aws_iam_role" "task" {
128128 local. is_lambda ? {} : {
129129 Condition = {
130130 ArnLike = {
131- " aws:SourceArn" = " arn:aws:ecs:${ data . aws_region . current . name } :${ data . aws_caller_identity . current . account_id } :*"
131+ " aws:SourceArn" = " arn:aws:ecs:${ data . aws_region . current . region } :${ data . aws_caller_identity . current . account_id } :*"
132132 }
133133 StringEquals = {
134134 " aws:SourceAccount" = data.aws_caller_identity.current.account_id
You can’t perform that action at this time.
0 commit comments