Skip to content

Support for passing Tags to EC2 instances created by launch_template.tf #37

@matthew-sinn

Description

@matthew-sinn

Is your feature request related to an ongoing bug?
Our AWS organization makes use of a Tagging Policy which specifies a series of required tags for certain resource types to be assigned at creation time. Currently, the use of a Terraform aws_launch_template resource to create EC2 instances dose not by default pass tags through to instances that are created by it. As such, even though the launch_template itself gets the tags we pass to the module, the instances do not and are thus prevented from being created.

We are requesting that the Corelight module be updated to support this tag pass-through functionality.

Supporting documentation:

aws_launch_template | Resources | hashicorp/aws | Terraform | Terraform Registry

tag_specifications - (Optional) The tags to apply to the resources during launch. See Tag Specifications below for more details. Default tags are currently not propagated to ASG created resources so you may wish to inject your default tags into this variable against the relevant child resource types created.

Propose a solution
Add the indicated tag_specifications block to the launch_template.tf file. A related PR will be associated.

What alternatives have you tried or considered?
We considered forking and deploying a version of the code modified by us, but that would introduce unnecessary overhead for us when upgrading to future versions of this module so we would prefer the module support the appropriate functionality.

Any additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions