Skip to content

Instantly share code, notes, and snippets.

# -- coding: utf-8 --
import os
import subprocess
import urllib
import boto3
TERRAFORM_VERSION = '0.9.6'
TERRAFORM_DOWNLOAD_URL = (
'
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(
@cepefernando
cepefernando / terraform-destroy
Created February 14, 2018 17:58
terraform-destroy
# from git import Repo
import os
import subprocess
import urllib
import urllib2
import boto3
import logging
logger = logging.getLogger()
logger.setLevel(logging.INFO)