Skip to content

chore(credential-provider-imds): use arrow+async functions in fromContainerMetadata #2142

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

Merged
merged 3 commits into from
Apr 8, 2021

Conversation

trivikr
Copy link
Member

@trivikr trivikr commented Mar 16, 2021

Issue

N/A

Description

This PR uses the following in fromContainerMetadata:

  • async-await instead of Promises
  • arrow functions

Testing

CI


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@trivikr trivikr requested a review from AllanZhengYP March 16, 2021 16:12
@aws-sdk-js-automation
Copy link

AWS CodeBuild CI Report

  • CodeBuild project: sdk-staging-test
  • Commit ID: 2182404
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

}
return () =>
retry(async () => {
const requestOptions = await getCmdsUri();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moving getCmdUri() into function is fine as it only loads values from environmental variables.

@AllanZhengYP AllanZhengYP merged commit 0cc9701 into aws:main Apr 8, 2021
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 23, 2021
@trivikr trivikr deleted the update-from-container-metadata branch June 1, 2021 22:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants