AWS Boto3
https://boto3.readthedocs.org/en/latest/
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html
```python
import boto3
client = boto3.client(‘ec2’)
response = client.create_key_pair( DryRun=True|False, KeyName=’string’ )
{
# ‘KeyName’: ‘string’, # ‘KeyFingerprint’: ‘string’, # ‘KeyMaterial’: ‘string’ # }
response = client.create_security_group( DryRun=True|False, GroupName=’string’, Description=’string’, VpcId=’string’ )
{
# ‘GroupId’: ‘string’ # }
response = client.run_instances( DryRun=True|False, ImageId=’string’, MinCount=1, MaxCount=1, KeyName=’string’, SecurityGroupIds=[ ‘string’, ], UserData=’string’, InstanceType=’t1.micro’|’m1.small’|’m1.medium’|’m1.large’|’m1.xlarge’|’m3.medium’|’m3.large’|’m3.xlarge’|’m3.2xlarge’|’m4.large’|’m4.xlarge’|’m4.2xlarge’|’m4.4xlarge’|’m4.10xlarge’|’t2.nano’|’t2.micro’|’t2.small’|’t2.medium’|’t2.large’|’m2.xlarge’|’m2.2xlarge’|’m2.4xlarge’|’cr1.8xlarge’|’i2.xlarge’|’i2.2xlarge’|’i2.4xlarge’|’i2.8xlarge’|’hi1.4xlarge’|’hs1.8xlarge’|’c1.medium’|’c1.xlarge’|’c3.large’|’c3.xlarge’|’c3.2xlarge’|’c3.4xlarge’|’c3.8xlarge’|’c4.large’|’c4.xlarge’|’c4.2xlarge’|’c4.4xlarge’|’c4.8xlarge’|’cc1.4xlarge’|’cc2.8xlarge’|’g2.2xlarge’|’g2.8xlarge’|’cg1.4xlarge’|’r3.large’|’r3.xlarge’|’r3.2xlarge’|’r3.4xlarge’|’r3.8xlarge’|’d2.xlarge’|’d2.2xlarge’|’d2.4xlarge’|’d2.8xlarge’, Placement={ ‘AvailabilityZone’: ‘string’, ‘GroupName’: ‘string’, ‘Tenancy’: ‘default’|’dedicated’|’host’, ‘HostId’: ‘string’, ‘Affinity’: ‘string’ } )
’’’