github.com/hashicorp/packer@v1.14.3/command/test-fixtures/hcl2_upgrade/variables-with-variables/expected.pkr.hcl (about) 1 2 variable "aws_access_key" { 3 type = string 4 default = "" 5 sensitive = true 6 } 7 8 variable "aws_region" { 9 type = string 10 } 11 12 variable "aws_secret_key" { 13 type = string 14 default = "" 15 sensitive = true 16 } 17 18 local "password" { 19 sensitive = true 20 expression = "${var.aws_secret_key}-${var.aws_access_key}" 21 } 22 23 locals { 24 aws_secondary_region = "${var.aws_region}" 25 }