-
Notifications
You must be signed in to change notification settings - Fork 437
chore: allow copilot env init fallback to default credentials #5202
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
chore: allow copilot env init fallback to default credentials #5202
Conversation
|
🍕 Here are the new binary sizes!
|
Codecov Report
@@ Coverage Diff @@
## mainline #5202 +/- ##
=========================================
Coverage 69.52% 69.52%
=========================================
Files 295 295
Lines 43897 43902 +5
Branches 285 285
=========================================
+ Hits 30518 30523 +5
Misses 11889 11889
Partials 1490 1490
|
| errRetrieveCreds := err | ||
| sess, err := o.sessProvider.Default() | ||
| if err != nil { | ||
| return errors.Join(errRetrieveCreds, fmt.Errorf("falling back on default credentials: %w", err)) |
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.
noice! It is a good call to include errRetrieveCreds in this case 👍🏼 !
Lou1415926
left a comment
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.
![]()
Lets copilot fall back to default credentials when it fails to find/parse
.aws/configfile duringcopilot env init.Addresses #5066
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.