Skip to content

Add AWS instance tags to client metadata #12537

Open
@nahsi

Description

Since January 2022 AWS Instance tags are available in EC2 metadata. Would it be possible to add Instance tags to Nomad client metadata?

Tags in metadata must be enabled first.

Then tags can be accessed from metadata endpoint:

nahsi@i-0f8c34d628a7cae51:~$ curl http://169.254.169.254/latest/meta-data/tags/instance
Name
aws:autoscaling:groupName
aws:ec2:fleet-id
aws:ec2launchtemplate:id
aws:ec2launchtemplate:version
class
env
role
terraform_managed

Proposal

Pupulate Nomad client metadata with Instance tags collected from AWS metadata endpoint

Use-cases

Ability to constraint jobs based on AWS tags.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status

      Needs Roadmapping

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions