Fix cloudformation subnet tagging.

This commit is contained in:
Steve Pulec 2015-07-13 19:27:00 -04:00
commit 4020141478
2 changed files with 50 additions and 6 deletions

View file

@ -1715,6 +1715,11 @@ class Subnet(TaggedEC2Resource):
cidr_block=cidr_block,
availability_zone=availability_zone,
)
for tag in properties.get("Tags", []):
tag_key = tag["Key"]
tag_value = tag["Value"]
subnet.add_tag(tag_key, tag_value)
return subnet
@property