-
Notifications
You must be signed in to change notification settings - Fork 95
Migrate to AWS SDK for Go v2 (github.com/aws/aws-sdk-go-v2) #757
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
Conversation
…clicompat Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
…ssues Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
|
@copilot please fix ci issues. |
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
Fixed the CI linting issues by defining constants for repeated string literals in test files. The |
pkg/awsclicompat/session.go
Outdated
| if profile != "" { | ||
| opts = append(opts, config.WithSharedConfigProfile(profile)) | ||
| } else if os.Getenv("FORCE_AWS_PROFILE") == "true" { | ||
| if awsProfile := os.Getenv("AWS_PROFILE"); awsProfile != "" { | ||
| opts = append(opts, config.WithSharedConfigProfile(awsProfile)) | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot could you use switch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done! Converted the if-else chain to a switch statement for better readability and consistency with Go best practices. The functionality remains identical. Fixed in commit 20726fe.
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
…#757) Signed-off-by: CorentinPtrl <pitrel.corentin@gmail.com>
testKeyandtestValueconstants invals_ssm_test.govals_ssm_test.goandvals_vault_test.gosession.go💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.