How do I get the ECS task metadata endpoint (environment variable)? #5207
-
It says on the docs that:
These are the only environment variables available: Am I misunderstanding something? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @sirbully! |
Beta Was this translation helpful? Give feedback.
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 ofECS_CONTAINER_METADATA_URI_V4
outside of your container, you could try usingcopilot svc exec
, and then runningecho $ECS_CONTAINER_METADATA_URI_V4
!