Fix cloudformation subnet tagging.
This commit is contained in:
parent
a854efbf56
commit
4020141478
2 changed files with 50 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue