From cd394bf67dc33a77163340def2a4f04ad07ed1b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Wed, 9 Mar 2022 11:55:26 +0100 Subject: [PATCH] packer: add default to aws auth variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- templates/packer/variables.pkr.hcl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/templates/packer/variables.pkr.hcl b/templates/packer/variables.pkr.hcl index 4e01a2580..44a628678 100644 --- a/templates/packer/variables.pkr.hcl +++ b/templates/packer/variables.pkr.hcl @@ -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"