Created
May 23, 2020 01:34
-
-
Save anneakin/6a1320d81b005dc31601d0e7f0cece7d to your computer and use it in GitHub Desktop.
Builders section of Packer JSON
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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