Skip to content

Commit

Permalink
Update build.pkr.hcl
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Sep 10, 2024
1 parent 88a5ce3 commit 8963303
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions build.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
]
}

Expand Down

0 comments on commit 8963303

Please sign in to comment.