From 8abf1365f65a7fc3466e76d833acedf0af597937 Mon Sep 17 00:00:00 2001 From: Ryan Malloy Date: Tue, 12 Nov 2024 18:16:57 +0000 Subject: [PATCH] Update packer-ami.pkr.hcl --- packer-ami.pkr.hcl | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/packer-ami.pkr.hcl b/packer-ami.pkr.hcl index 47ad4e9..9f43570 100644 --- a/packer-ami.pkr.hcl +++ b/packer-ami.pkr.hcl @@ -40,27 +40,4 @@ build { provisioner "shell" { script = "install-docker.sh" } - - provisioner "shell" { - inline = [ - "mkdir ~/.aws" - ] - } - - provisioner "file" { - source = "aws-config" - destination = "~/.aws/config" - } - - provisioner "file" { - source = "aws-creds" - destination = "~/.aws/credentials" - } - - provisioner "shell" { - inline = [ - "sed -i 's|aKeyID|${var.AWS_ACCESS_KEY_ID}|' ~/.aws/credentials", - "sed -i 's|aSecretAccessKey|${var.AWS_SECRET_ACCESS_KEY}|' ~/.aws/credentials" - ] - } } \ No newline at end of file