fix adding tags to vpc created by cloudformation
This commit is contained in:
parent
e85bbe2ebc
commit
6da22f9fa4
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue