mirror of https://github.com/hashicorp/packer
parent
60017822e0
commit
a1a5cf0113
@ -0,0 +1,25 @@
|
||||
|
||||
variable "aws_access_key" {
|
||||
type = string
|
||||
default = ""
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
variable "aws_region" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "aws_secret_key" {
|
||||
type = string
|
||||
default = ""
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
local "password" {
|
||||
sensitive = true
|
||||
expression = "${var.aws_secret_key}-${var.aws_access_key}"
|
||||
}
|
||||
|
||||
locals {
|
||||
aws_secondary_region = "${var.aws_region}"
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
{
|
||||
"variables": {
|
||||
"aws_region": null,
|
||||
"aws_secondary_region": "{{ user `aws_region` }}",
|
||||
"aws_secret_key": "",
|
||||
"aws_access_key": "",
|
||||
"password": "{{ user `aws_secret_key` }}-{{ user `aws_access_key` }}"
|
||||
},
|
||||
"sensitive-variables": [
|
||||
"aws_secret_key",
|
||||
"aws_access_key",
|
||||
"password"
|
||||
]
|
||||
}
|
||||
Loading…
Reference in new issue