hashi-stack/packer/hashi.json

29 lines
792 B
JSON
Raw Permalink Normal View History

2020-05-19 06:37:21 +02:00
{
"variables": {
2020-05-19 07:04:32 +02:00
"aws_access_key": "JHADK&#N83JN92GH",
"aws_secret_key": "0JAGS6GDJ9gs5jsJKahdHD8KQgaoP",
2020-05-19 06:37:21 +02:00
"ssh_keypair_name": "anurag-aws"
},
"builders": [
{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"source_ami" : "ami-003634241a8fcdec0",
"region": "us-west-2",
"instance_type": "t2.micro",
"ssh_username": "ubuntu",
"ssh_keypair_name": "{{user `ssh_keypair_name`}}",
"ssh_private_key_file":"~/Downloads/AWS/anurag-aws.pem",
"ami_name": "hashi-example {{timestamp}}"
}
],
"provisioners": [{
"type": "shell",
"scripts": [
"prereqs.sh"
],
"execute_command" : "echo 'vagrant' | sudo -S -E bash '{{ .Path }}'"
}]
}