Skip to content

Instantly share code, notes, and snippets.

@smerrill
Created October 26, 2016 19:31
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 smerrill/230d2e2a6cb6a4c814e96d9f8a1a4274 to your computer and use it in GitHub Desktop.
Save smerrill/230d2e2a6cb6a4c814e96d9f8a1a4274 to your computer and use it in GitHub Desktop.
Build a Dirty COW-proof Amazon Linux AMI for use with Elastic Beanstalk
{
"builders": [{
"type": "amazon-ebs",
"region": "us-east-1",
"source_ami": "ami-c481fad3",
"instance_type": "t2.micro",
"ssh_username": "ec2-user",
"ssh_timeout": "5m",
"vpc_id": "vpc-99999999",
"subnet_id": "subnet-99999999",
"ami_name": "patched-eb-ami-{{timestamp}}"
}],
"provisioners": [
{
"type": "shell",
"inline": [
"sudo yum -y update",
"sudo yum -y install jq nginx sqlite docker docker-storage-setup"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment