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

feat!: run local --use-task-role flag #5529

Merged
merged 16 commits into from
Dec 15, 2023

Conversation

CaptainCarpensir
Copy link
Contributor

@CaptainCarpensir CaptainCarpensir commented Dec 5, 2023

Implements the second method of retrieving the task role in the credentials chain: ecs exec

Breaking change:
The --use-task-role flag will default to true. This is a breaking change because in the event that neither method of receiving credentials works, copilot run local will fail by default. To mitigate this, we introduce a recommended action displayed when --use-task-role fails that gives the user 2 recommendations to proceed:

  1. Specify copilot run local --use-task-role=false to disable the feature.
  2. Use a provided yaml override to allow the credential retrieving process to work.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.

@CaptainCarpensir CaptainCarpensir requested a review from a team as a code owner December 5, 2023 22:01
@CaptainCarpensir CaptainCarpensir requested review from KollaAdithya and removed request for a team December 5, 2023 22:01
@codecov-commenter
Copy link

codecov-commenter commented Dec 5, 2023

Codecov Report

Attention: 49 lines in your changes are missing coverage. Please review.

Comparison is base (21aee4b) 70.05% compared to head (150f7d7) 70.01%.

Files Patch % Lines
internal/pkg/cli/run_local.go 58.92% 41 Missing and 5 partials ⚠️
internal/pkg/cli/errors.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           mainline    #5529      +/-   ##
============================================
- Coverage     70.05%   70.01%   -0.04%     
============================================
  Files           302      302              
  Lines         46293    46403     +110     
  Branches        301      301              
============================================
+ Hits          32429    32490      +61     
- Misses        12291    12335      +44     
- Partials       1573     1578       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Dec 5, 2023

🍕 Here are the new binary sizes!

Name New size (kiB) size (kiB) Delta (%)
macOS (amd) 56784 56800 ❤️ -0.03
macOS (arm) 57800 57796 +0.01
linux (amd) 49788 49808 ❤️ -0.04
linux (arm) 49088 49092 ❤️ -0.01
windows (amd) 46920 46928 ❤️ -0.02

internal/pkg/cli/run_local.go Outdated Show resolved Hide resolved
internal/pkg/cli/run_local.go Show resolved Hide resolved
internal/pkg/cli/run_local.go Show resolved Hide resolved
@CaptainCarpensir CaptainCarpensir changed the title feat: run local --use-task-role flag feat!: run local --use-task-role flag Dec 6, 2023
Copy link
Contributor

@KollaAdithya KollaAdithya left a comment

Choose a reason for hiding this comment

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

looks great!

internal/pkg/cli/run_local.go Outdated Show resolved Hide resolved
internal/pkg/cli/run_local.go Outdated Show resolved Hide resolved
@CaptainCarpensir CaptainCarpensir changed the title feat!: run local --use-task-role flag chore: run local task role ecs exec method Dec 11, 2023
@iamhopaul123 iamhopaul123 added do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. and removed do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. labels Dec 13, 2023
@CaptainCarpensir CaptainCarpensir changed the title chore: run local task role ecs exec method feat!: run local --use-task-role flag Dec 13, 2023
Copy link
Contributor

@KollaAdithya KollaAdithya left a comment

Choose a reason for hiding this comment

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

🚢

@mergify mergify bot merged commit 9bc5f46 into aws:mainline Dec 15, 2023
11 of 12 checks passed
@CaptainCarpensir CaptainCarpensir deleted the cli/task-role-ecs-exec branch January 2, 2024 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants