Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promise support for MetadataService#request #3916

Closed
1 task done
nwalters512 opened this issue Oct 9, 2021 · 2 comments
Closed
1 task done

Promise support for MetadataService#request #3916

nwalters512 opened this issue Oct 9, 2021 · 2 comments
Labels
closed-for-staleness feature-request A feature should be added or improved.

Comments

@nwalters512
Copy link

nwalters512 commented Oct 9, 2021

  • This is a feature with version 2.x of the SDK

Is your feature request related to a problem? Please describe.
Virtually every request supported by the SDK supports calling .promise() on the result so that it can be used without callbacks. This is described in the documentation here: https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/using-promises.html. However, MetadataService#request does not offer .promise() support.

Describe the solution you'd like
I'd like to be able to call MetadataService.request(...).promise().

Describe alternatives you've considered
We currently use util.promisify() to wrap request in a Promise, but that's less than ideal.

Additional context
This was originally proposed in #2062, but it was subsequently closed automatically without a resolution.

@nwalters512 nwalters512 added the feature-request A feature should be added or improved. label Oct 9, 2021
@github-actions
Copy link

Greetings! We’re closing this issue because it has been open a long time and hasn’t been updated in a while and may not be getting the attention it deserves. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to comment or open a new issue.

@github-actions github-actions bot added closing-soon This issue will automatically close in 4 days unless further comments are made. closed-for-staleness and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Oct 16, 2022
@nwalters512
Copy link
Author

This is still an issue. The v3 SDK does not offer support for the Metadata Service: aws/aws-sdk-js-v3#4004.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-for-staleness feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

2 participants
@nwalters512 and others