aws / aws-sdk

Landing page for the AWS SDKs on GitHub
https://aws.amazon.com/tools/
Other
68 stars 13 forks source link

ECS task metadata logic #222

Open smoell opened 2 years ago

smoell commented 2 years ago

Describe the feature

For performance measurements in the context of Amazon ECS, the metrics data from the task metadata endpoint can be used. Unfortunately, there is no direct AWS SDK support for this, which means that the logic itself has to be implemented.

Is your Feature Request related to a problem?

It is a common task to get ECS metadata for introspection purposes. On GitHub there are several implementations for this issue, AWS should provide a standardized implementation.

Proposed Solution

Implement a service to connect with the ECS metadata endpoint and return a Java object/a list of Java objects wrapping the JSON data.

Describe alternatives you've considered

No response

Acknowledge

AWS Java SDK version used

2.17.121

JDK version used

Doesn't matter

Operating System and version

Doesn't matter

debora-ito commented 2 years ago

Hi @smoell I'm not familiar with ECS Task metadata, assuming you're talking about this: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-metadata-endpoint.html

So this would be something similar to the EC2 Metadata Client.

To anyone following this issue, please show your interest by adding a 👍 to the original description.

debora-ito commented 2 years ago

We identified this as a feature that should be supported across all SDKs. Transferring this to the aws-sdk repo for visibility.