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