These are the code samples for the article "Using Parameterized Launches to Customize your AMIs." The article and accompanying code show how a generic AMI can be modified to modify its configuration at launch time by downloading scripts and configuration files sent as user data with the ec2-run-instances command.