Giter Club home page Giter Club logo

Comments (12)

L-Applin avatar L-Applin commented on July 18, 2024 1

The EC2 Metadata Client now available, starting in version 2.19.29
https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/imds/Ec2MetadataClient.html

from aws-sdk-java-v2.

millems avatar millems commented on July 18, 2024

Using this issue to track building a public-facing EC2 Metadata Client.

from aws-sdk-java-v2.

PyvesB avatar PyvesB commented on July 18, 2024

I'm surprised that this has not yet been implemented, especially as someone volunteered to contribute this last year. Why was he ignored?

from aws-sdk-java-v2.

dagnir avatar dagnir commented on July 18, 2024

Sorry for the delay in our response. We aim to respond to all comments, feedback and pull requests our customers make and we apologize that we failed to do so in this instance.

We have been working with the EC2 team to figure out the best possible customer experience for exposing this information, and in the meantime we welcome all suggestions and will use them to help us in that decision making process.

We will keep updating this issue as we move towards delivery.

Thank you for your patience!

from aws-sdk-java-v2.

injeniero avatar injeniero commented on July 18, 2024

@dagnir Any update on this?

from aws-sdk-java-v2.

spender0 avatar spender0 commented on July 18, 2024

any progress? It turned out that we need to change metadata_service_timeout as the connection in our case takes more than 1 second. But it is hardcoded in the SDK

from aws-sdk-java-v2.

sanjeeb26 avatar sanjeeb26 commented on July 18, 2024

@dagnir do you have timeline when this will be available in the SDK?

from aws-sdk-java-v2.

dFarras avatar dFarras commented on July 18, 2024

@millems @dagnir is there any new about this issue?

Thanks in advance

from aws-sdk-java-v2.

millems avatar millems commented on July 18, 2024

@dFarras Sorry, not right now. What specific feature do you need (and why do you need it), so we can make sure that's included when this gets done?

from aws-sdk-java-v2.

dFarras avatar dFarras commented on July 18, 2024

My use case is that I need to retrieve an instance id but I can not be sure were the instance is deployed in advance or not. Also instance id is only informative info and therefore no user will desire to wait for too long.

After diving a bit in Ec2Metadata I saw no obvious way of injecting an http client or modifying its configuration so when I call its methods they will fail after http standard timeout, which is too long for me.

I have a workaround, but I would desire to be able to modify Ec2Metadata configuration.

from aws-sdk-java-v2.

millems avatar millems commented on July 18, 2024

Feature request from a customer: Once this is implemented, it would be nice to be able to configure which client is used by the instance metadata credentials provider, so that things like the endpoint or timeouts can be configured.

from aws-sdk-java-v2.

github-actions avatar github-actions commented on July 18, 2024

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

from aws-sdk-java-v2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.