Skip to content

Instantly share code, notes, and snippets.

@DanielMarquard
Last active July 16, 2017 00:01
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 DanielMarquard/7587af38e1dbb76e89e373cf89ecd44b to your computer and use it in GitHub Desktop.
Save DanielMarquard/7587af38e1dbb76e89e373cf89ecd44b to your computer and use it in GitHub Desktop.
baseline-ami.json
{
"builders": [
{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "{{user `aws_region`}}",
"source_ami": "{{user `aws_source_ami`}}",
"instance_type": "t2.micro",
"ssh_username": "centos",
"ami_name": "baseline-ami-centos73-{{timestamp}}",
"launch_block_device_mappings": [
{
"device_name": "/dev/sda1",
"volume_size": 8,
"volume_type": "gp2",
"delete_on_termination": true
}
],
"shutdown_behavior": "terminate",
"force_deregister": "true",
"force_delete_snapshat": "true"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment