packer: add default to aws auth variables

So you don't have to pass these if packer is supposed to find them
on its own (instance profile, local profile).

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
Ondřej Budai 2022-03-09 11:55:26 +01:00 committed by Ondřej Budai
parent 4ae71d3f3d
commit cd394bf67d

View file

@ -2,8 +2,14 @@
# when running `packer build`
# AWS account configuration.
variable "aws_access_key" { type = string }
variable "aws_secret_key" { type = string }
variable "aws_access_key" {
type = string
default = ""
}
variable "aws_secret_key" {
type = string
default = ""
}
variable "region" {
type = string
default = "us-east-1"