Update packer-ami.pkr.hcl
This commit is contained in:
parent
116fc54f2e
commit
8abf1365f6
|
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue