From 89633035a3df43aff718456a2cdf7af612bc6ccb Mon Sep 17 00:00:00 2001 From: David John Arnold Jr Date: Tue, 10 Sep 2024 10:44:59 -0700 Subject: [PATCH] Update build.pkr.hcl --- build.pkr.hcl | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/build.pkr.hcl b/build.pkr.hcl index e0c4d74..3f8f635 100644 --- a/build.pkr.hcl +++ b/build.pkr.hcl @@ -28,10 +28,6 @@ variable project_name { default = "my-project" } -variable region { - type = string -} - # ecr_repository_name data amazon-parameterstore dest_image { name = "/image-pipeline/${var.project_name}/dest_image" @@ -102,11 +98,7 @@ build { roles_path = "${var.ansible_dir}/roles" ansible_env_vars = [ "ANSIBLE_STDOUT_CALLBACK=yaml", - "ANSIBLE_NOCOLOR=True", - "AWS_ACCESS_KEY_ID=${local.aws_access_key_id}", - "AWS_SECRET_ACCESS_KEY=${local.aws_secret_access_key}", - "AWS_REGION=${data.amazon-parameterstore.region.value}", - "AWS_DEFAULT_REGION=${data.amazon-parameterstore.region.value}" + "ANSIBLE_NOCOLOR=True" ] }