Skip to content

How do I get the ECS task metadata endpoint (environment variable)? #5207

Answered by dannyrandall
sirbully asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @sirbully! ECS_CONTAINER_METADATA_URI_V4 is injected into your container, but the only ones listed in the view you're looking at are variables specified by you in the manifest. If you want to get the value of ECS_CONTAINER_METADATA_URI_V4 outside of your container, you could try using copilot svc exec, and then running echo $ECS_CONTAINER_METADATA_URI_V4!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sirbully
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants