fix adding tags to vpc created by cloudformation

This commit is contained in:
Gordon Irving 2017-12-28 19:04:37 +00:00
parent e85bbe2ebc
commit 6da22f9fa4

View File

@ -2004,6 +2004,11 @@ class VPC(TaggedEC2Resource):
cidr_block=properties['CidrBlock'],
instance_tenancy=properties.get('InstanceTenancy', 'default')
)
for tag in properties.get("Tags", []):
tag_key = tag["Key"]
tag_value = tag["Value"]
vpc.add_tag(tag_key, tag_value)
return vpc
@property