Skip to content

Instantly share code, notes, and snippets.

View my-janala's full-sized avatar

Mezbaur Rahman my-janala

View GitHub Profile
@my-janala
my-janala / lambda_ec2_start
Created November 17, 2016 10:14
creating a simple lambda function to start ec2 instances
import boto3
# Enter the region your instances are in, e.g. 'us-east-1'
region = 'eu-west-1'
# Enter your instances here: ex. ['X-XXXXXXXX', 'X-XXXXXXXX']
instances = ['i-21d32eac', 'i-08a54cc8']