Skip to content

Instantly share code, notes, and snippets.

@anneakin
Created May 23, 2020 01:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anneakin/6a1320d81b005dc31601d0e7f0cece7d to your computer and use it in GitHub Desktop.
Save anneakin/6a1320d81b005dc31601d0e7f0cece7d to your computer and use it in GitHub Desktop.
Builders section of Packer JSON
"builders": [
{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "us-east-1",
"source_ami_filter": {
"filters": {
"virtualization-type": "hvm",
"name": "amzn2-ami-hvm-2.0.20200207.1-x86_64-gp2",
"root-device-type": "ebs"
},
"owners": ["137112412989"],
"most_recent": true
},
"instance_type": "t2.micro",
"ssh_username": "ec2-user",
"ami_name": "_b_d_a_example {{timestamp}}"
}
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment