This file contains hidden or 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
""" Lambda to launch ec2-instances """ | |
import boto3 | |
REGION = 'eu-central-1' # region to launch instance. | |
AMI = 'ami-24bd1b4b' | |
# matching region/setup amazon linux ami, as per: | |
# https://aws.amazon.com/amazon-linux-ami/ | |
INSTANCE_TYPE = 'm3.medium' # instance type to launch. | |
EC2 = boto3.client('ec2', region_name=REGION) |