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
#! /usr/bin/env python | |
import sys | |
from boto import ec2, cloudformation | |
import boto.utils | |
def get_group_info(ec2conn, instance_id) : | |
reservations = ec2conn.get_all_instances(instance_id) | |
instance = [i for r in reservations for i in r.instances][0] | |
if instance.tags.has_key('aws:autoscaling:groupName'): |
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
"PrivateSubnetA": { | |
"Type": "AWS::EC2::Subnet", | |
"Properties": { | |
"AvailabilityZone": { | |
"Fn::Select": [ | |
0, | |
{ | |
"Fn::GetAZs": { | |
"Ref": "AWS::Region" |