Created
July 17, 2017 21:39
-
-
Save SwampDragons/16795dbe6fdc7e588bc967f0a66bc5d8 to your computer and use it in GitHub Desktop.
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
{ | |
"variables": { | |
"aws_access_key": "{{env `AWS_ACCESS_KEY_ID`}}", | |
"aws_secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}", | |
"region": "{{env `AWS_DEFAULT_REGION`}}" | |
}, | |
"builders": [ | |
{ | |
"access_key": "{{user `aws_access_key`}}", | |
"ami_name": "packer-qs-{{timestamp}}", | |
"instance_type": "t2.micro", | |
"region": "us-west-2", | |
"ami_regions": ["us-east-2"], | |
"secret_key": "{{user `aws_secret_key`}}", | |
"source_ami": "ami-12345", | |
"ssh_username": "ubuntu", | |
"type": "amazon-ebs", | |
"encrypt_boot": true, | |
"kms_key_id": "my-west2-kms-key-id", | |
"region_kms_key_ids": { | |
"us-east-2": "my-east2-kms-key-id" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment