diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 172d01f..b301160 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -99,8 +99,8 @@ jobs: } EOF - terraform -chdir="$tmpdir" init -backend=false -input=false - if terraform -chdir="$tmpdir" validate -no-color >"$tmpdir/validate.out" 2>&1; then + if terraform -chdir="$tmpdir" init -backend=false -input=false >"$tmpdir/validate.out" 2>&1 && + terraform -chdir="$tmpdir" validate -no-color >>"$tmpdir/validate.out" 2>&1; then echo "expected enable_function_url to be rejected" >&2 exit 1 fi diff --git a/terraform/locals.tf b/terraform/locals.tf index 0a4305d..4e5c344 100644 --- a/terraform/locals.tf +++ b/terraform/locals.tf @@ -7,7 +7,7 @@ data "aws_partition" "current" {} locals { account_id = data.aws_caller_identity.current.account_id partition = data.aws_partition.current.partition - region = data.aws_region.current.region + region = data.aws_region.current.name ssm_parameter_arns = [ for path in [