Skip to content

Commit e7403bf

Browse files
committed
Fixes CI
1 parent cf5f16c commit e7403bf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎main.tf‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

‎modules/aws-common/main.tf‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)