Open
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
Labels
Type
Projects
Status
Needs Roadmapping