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

fix(middleware-sdk-ec2): use hostname from regionInfoProvider #3673

Merged
merged 3 commits into from Jun 8, 2022

Conversation

kuhe
Copy link
Contributor

@kuhe kuhe commented Jun 8, 2022

Issue

Internal V599567416

Description

  • Use the regionInfoProvider to get the hostname for a specific EC2 command, copySnapshot
  • the previous value was partially hardcoded

Testing

  • added unit tests
  • manual testing in affected web application

@kuhe kuhe requested a review from a team as a code owner June 8, 2022 15:57
@kuhe kuhe force-pushed the fix/ec2-resolve-hostname branch from 9dd4b1a to 4e98582 Compare June 8, 2022 16:05
@@ -81,7 +76,7 @@ export const copySnapshotPresignedUrlMiddlewareOptions: InitializeHandlerOptions
override: true,
};

export const getCopySnapshotPresignedUrlPlugin = (config: PreviouslyResolved): Pluggable<any, any> => ({
export const getCopySnapshotPresignedUrlPlugin = (config: EC2ClientResolvedConfig): Pluggable<any, any> => ({
Copy link
Contributor Author

Choose a reason for hiding this comment

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

AllanZhengYP
AllanZhengYP previously approved these changes Jun 8, 2022
@kuhe kuhe merged commit 5103554 into aws:main Jun 8, 2022
@kuhe kuhe deleted the fix/ec2-resolve-hostname branch June 8, 2022 17:24
@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 Jun 23, 2022
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.

None yet

2 participants