Skip to content

Commit

Permalink
Add public/private type tags to subnets
Browse files Browse the repository at this point in the history
  • Loading branch information
phobologic committed May 13, 2015
1 parent 114afb6 commit 44bcfb7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions stacker/blueprints/vpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""

from troposphere import (
Ref, Output, Join, FindInMap, Select, GetAZs, Not, Equals
Ref, Output, Join, FindInMap, Select, GetAZs, Not, Equals, Tags
)
from troposphere import ec2
from troposphere.route53 import HostedZone, HostedZoneVPCs
Expand Down Expand Up @@ -147,7 +147,8 @@ def create_network(self):
AvailabilityZone=az,
VpcId=vpc_id,
DependsOn=GW_ATTACH,
CidrBlock=Select(i, Ref("%sSubnets" % name_prefix))))
CidrBlock=Select(i, Ref("%sSubnets" % name_prefix)),
Tags=Tags(type=net_type)))
route_table_name = "%sRouteTable%s" % (name_prefix,
name_suffix)
t.add_resource(ec2.RouteTable(
Expand Down

0 comments on commit 44bcfb7

Please sign in to comment.