Skip to content

CloudFormation: Creating a launch template through CF add the CFT tags #10168

Description

@GtrMo

When creating a launch template through CloudFormation, moto adds the CloudFormation template tags to the launch template (as it does for all tagged EC2 resources.

instance = self[resource]
if isinstance(instance, TaggedEC2Resource):
self.tags["aws:cloudformation:logical-id"] = resource
backend = ec2_models.ec2_backends[self._account_id][self._region_name]
backend.create_tags([instance.physical_resource_id], self.tags)

moto behaves differenlty than AWS here: the CloudFormation tags shouldn't be added to the launch template.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions