Skip to content

read tags through metadata not iam-rights (describetags) #1410

@dayByte

Description

@dayByte

If using auto scaling dimensions the IAM right describetags is needed. It would be better to read tags with the help of metadata when enabled.

TOKEN=$(curl -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds:21600" 2>/dev/null)
$(curl -H "X-aws-ec2-metadata-token:$TOKEN" -s http://169.254.169.254/latest/meta-data/tags/instance/Name)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions