Created
October 26, 2016 19:31
-
-
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
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", | |
"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