#!/usr/bin/env python
import boto3
ec2 = boto3.resource('ec2')
instance = ec2.create_instances(
	ImageId = 'ami-7c87d913',
	MinCount = 1,
	MaxCount = 1,
	InstanceType = 't2.micro',
	KeyName = 'ALB',
	SecurityGroupIds = list('sg-aaf89cc1'))
print instance[0].id	
