From 9fd93c65d9f7f8a72c51131084eba194d3575709 Mon Sep 17 00:00:00 2001 From: Joshua Gilman Date: Wed, 29 Apr 2026 16:45:30 -0700 Subject: [PATCH] fix(terraform): support AWS provider v5 region data --- .github/workflows/terraform.yml | 4 ++-- terraform/locals.tf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 [