From 21664af30b71795b6d351753e74816fe5a4d7e17 Mon Sep 17 00:00:00 2001 From: Matthew Creal Morgan Date: Wed, 27 Aug 2025 14:49:14 -0700 Subject: [PATCH] Update deprecated attribute MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 17:46:41.960 STDOUT terraform_current: ╷ 17:46:41.960 STDOUT terraform_current: │ Warning: Deprecated attribute 17:46:41.960 STDOUT terraform_current: │ 17:46:41.960 STDOUT terraform_current: │ on .terraform/modules/images/main.tf line 251, in locals: 17:46:41.960 STDOUT terraform_current: │ 251: region = var.region == null ? data.aws_region.current.name : var.region 17:46:41.960 STDOUT terraform_current: │ 17:46:41.960 STDOUT terraform_current: │ The attribute "name" is deprecated. Refer to the provider documentation for 17:46:41.960 STDOUT terraform_current: │ details. --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 670ee8f..ea00510 100644 --- a/main.tf +++ b/main.tf @@ -248,7 +248,7 @@ data "aws_ecr_authorization_token" "token" {} locals { repo_parent_name = format("%v", var.application_name) - region = var.region == null ? data.aws_region.current.name : var.region + region = var.region == null ? data.aws_region.current.id : var.region account_ecr_registry = format("%v.dkr.ecr.%v.amazonaws.com", local.account_id, local.region) account_ecr = format("%v/%v", local.account_ecr_registry, local.repo_parent_name)