We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is perhaps overkill, but it'd be useful to resolve AWS EC2 metadata:
{{ec2meta "instance-id"}}
Or even to go so far as:
{{ec2tag "Name"}}
One thing I can't figure out is how to best get the region... Maybe as simple as {{ec2region}}
{{ec2region}}
The text was updated successfully, but these errors were encountered:
Ok, we have ec2meta now (#20). It grabs from the meta-data/ URL so I need something to grab from the dynamic/ URL.
ec2meta
meta-data/
dynamic/
Sorry, something went wrong.
dynamic/ is handled by #23.
Getting the region can now be done, but it's not pretty:
$ echo '{{ (ec2dynamic "instance-identity/document" | json).region }}' | gomplate us-east-1
It'd especially be useful to be able to parse the instance-identity document more easily like {{ec2something "region"}}... But for now it's 💤-time.
{{ec2something "region"}}
Got tags and region covered by #24. Sweet!
No branches or pull requests
This is perhaps overkill, but it'd be useful to resolve AWS EC2 metadata:
Or even to go so far as:
One thing I can't figure out is how to best get the region... Maybe as simple as
{{ec2region}}
The text was updated successfully, but these errors were encountered: