This file contains 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
# -- coding: utf-8 -- | |
import os | |
import subprocess | |
import urllib | |
import boto3 | |
TERRAFORM_VERSION = '0.9.6' | |
TERRAFORM_DOWNLOAD_URL = ( | |
' |
This file contains 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
import boto3 | |
import collections | |
import datetime | |
ec = boto3.client('ec2', region_name='eu-west-1') | |
#begins lambda function | |
def lambda_handler(event, context): | |
# mention your tag values below example "Backup-snap" | |
reservations = ec.describe_instances( |
This file contains 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
# from git import Repo | |
import os | |
import subprocess | |
import urllib | |
import urllib2 | |
import boto3 | |
import logging | |
logger = logging.getLogger() | |
logger.setLevel(logging.INFO) |