Update packer-ami.pkr.hcl

This commit is contained in:
Ryan Malloy 2024-11-12 18:16:57 +00:00
parent 116fc54f2e
commit 8abf1365f6
1 changed files with 0 additions and 23 deletions

View File

@ -40,27 +40,4 @@ build {
provisioner "shell" { provisioner "shell" {
script = "install-docker.sh" 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"
]
}
} }