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.
When creating a launch template through CloudFormation,
motoadds the CloudFormation template tags to the launch template (as it does for all tagged EC2 resources.moto/moto/cloudformation/parsing.py
Lines 754 to 758 in af6a1fd
motobehaves differenlty than AWS here: the CloudFormation tags shouldn't be added to the launch template.