Last active
June 28, 2022 02:22
-
-
Save Bak-Jin-Hyeong/3b3622ed9ed1bc9f7771be84dbd8b1d9 to your computer and use it in GitHub Desktop.
${ECS_CONTAINER_METADATA_URI}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"DockerId": "ea7886f0fd4707b60efc507efeeaa6289b03cffe68d08bb99e04e6dc49f9d325", | |
"Name": "hello-ecs", | |
"DockerName": "ecs-task-definition-name-1-hello-ecs-bc9c99e3ea95ea981500", | |
"Image": "947146334561.dkr.ecr.ap-northeast-2.amazonaws.com/ecs-repository-name:hello_ecs", | |
"ImageID": "sha256:5373156d1db82d2920edd8790c8c6bd1a0421456c3df2e5625c12e0de24ca3a7", | |
"Labels": { | |
"com.amazonaws.ecs.cluster": "arn:aws:ecs:ap-northeast-2:947146334561:cluster/cluster-name", | |
"com.amazonaws.ecs.container-name": "hello-ecs", | |
"com.amazonaws.ecs.task-arn": "arn:aws:ecs:ap-northeast-2:947146334561:task/cluster-name/228148e27bd34dbaae2409dedabcee76", | |
"com.amazonaws.ecs.task-definition-family": "task-definition-name", | |
"com.amazonaws.ecs.task-definition-version": "1" | |
}, | |
"DesiredStatus": "RUNNING", | |
"KnownStatus": "RUNNING", | |
"Limits": { | |
"CPU": 0, | |
"Memory": 0 | |
}, | |
"CreatedAt": "2020-04-06T07:20:40.830728229Z", | |
"StartedAt": "2020-04-06T07:20:41.816258643Z", | |
"Type": "NORMAL", | |
"Networks": [ | |
{ | |
"NetworkMode": "awsvpc", | |
"IPv4Addresses": [ | |
"10.197.9.47" | |
] | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Cluster": "arn:aws:ecs:ap-northeast-2:000000000000:cluster/cluster-name", | |
"TaskARN": "arn:aws:ecs:ap-northeast-2:000000000000:task/cluster-name/228148e27bd34dbaae2409dedabcee76", | |
"Family": "task-definition-name", | |
"Revision": "1", | |
"DesiredStatus": "RUNNING", | |
"KnownStatus": "RUNNING", | |
"Containers": [ | |
{ | |
"DockerId": "49c1ad56388df3fb0893f656c32ceecfb28a324b20762ff362dcb01aaa37acb6", | |
"Name": "~internal~ecs~pause", | |
"DockerName": "ecs-task-definition-name-1-internalecspause-d88a8de984ae9ceb3b00", | |
"Image": "fg-proxy:tinyproxy", | |
"ImageID": "", | |
"Labels": { | |
"com.amazonaws.ecs.cluster": "arn:aws:ecs:ap-northeast-2:000000000000:cluster/cluster-name", | |
"com.amazonaws.ecs.container-name": "~internal~ecs~pause", | |
"com.amazonaws.ecs.task-arn": "arn:aws:ecs:ap-northeast-2:000000000000:task/cluster-name/228148e27bd34dbaae2409dedabcee76", | |
"com.amazonaws.ecs.task-definition-family": "task-definition-name", | |
"com.amazonaws.ecs.task-definition-version": "1" | |
}, | |
"DesiredStatus": "RESOURCES_PROVISIONED", | |
"KnownStatus": "RESOURCES_PROVISIONED", | |
"Limits": { | |
"CPU": 0, | |
"Memory": 0 | |
}, | |
"CreatedAt": "2020-04-06T07:20:37.220514485Z", | |
"StartedAt": "2020-04-06T07:20:38.167376834Z", | |
"Type": "CNI_PAUSE", | |
"Networks": [ | |
{ | |
"NetworkMode": "awsvpc", | |
"IPv4Addresses": [ | |
"10.197.9.47" | |
] | |
} | |
] | |
}, | |
{ | |
"DockerId": "ea7886f0fd4707b60efc507efeeaa6289b03cffe68d08bb99e04e6dc49f9d325", | |
"Name": "hello-ecs", | |
"DockerName": "ecs-task-definition-name-1-hello-ecs-bc9c99e3ea95ea981500", | |
"Image": "000000000000.dkr.ecr.ap-northeast-2.amazonaws.com/ecs-repository-name:hello_ecs", | |
"ImageID": "sha256:5373156d1db82d2920edd8790c8c6bd1a0421456c3df2e5625c12e0de24ca3a7", | |
"Labels": { | |
"com.amazonaws.ecs.cluster": "arn:aws:ecs:ap-northeast-2:000000000000:cluster/cluster-name", | |
"com.amazonaws.ecs.container-name": "hello-ecs", | |
"com.amazonaws.ecs.task-arn": "arn:aws:ecs:ap-northeast-2:000000000000:task/cluster-name/228148e27bd34dbaae2409dedabcee76", | |
"com.amazonaws.ecs.task-definition-family": "task-definition-name", | |
"com.amazonaws.ecs.task-definition-version": "1" | |
}, | |
"DesiredStatus": "RUNNING", | |
"KnownStatus": "RUNNING", | |
"Limits": { | |
"CPU": 0, | |
"Memory": 0 | |
}, | |
"CreatedAt": "2020-04-06T07:20:40.830728229Z", | |
"StartedAt": "2020-04-06T07:20:41.816258643Z", | |
"Type": "NORMAL", | |
"Networks": [ | |
{ | |
"NetworkMode": "awsvpc", | |
"IPv4Addresses": [ | |
"10.197.9.47" | |
] | |
} | |
] | |
} | |
], | |
"Limits": { | |
"CPU": 0.25, | |
"Memory": 512 | |
}, | |
"PullStartedAt": "2020-04-06T07:20:38.267505423Z", | |
"PullStoppedAt": "2020-04-06T07:20:40.825112327Z" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ECS_CONTAINER_METADATA_URI = http://169.254.170.2/v3/abcdef01-2345-4867-890a-bcdef0123456
${ECS_CONTAINER_METADATA_URI}
-> ecs-container-metadata-v3.json
${ECS_CONTAINER_METADATA_URI}/task
-> ecs-task-metadata-v3.json
https://docs.aws.amazon.com/en_us/AmazonECS/latest/developerguide/task-metadata-endpoint-v3.html