Skip to content
This repository was archived by the owner on Jun 22, 2026. It is now read-only.

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

Merged
mergify[bot] merged 16 commits into
aws:mainlinefrom
CaptainCarpensir:cli/task-role-ecs-exec
Dec 15, 2023
Merged

mergify[bot] merged 16 commits into
aws:mainlinefrom
CaptainCarpensir:cli/task-role-ecs-exec

Conversation

@CaptainCarpensir

@CaptainCarpensir CaptainCarpensir commented Dec 5, 2023 •

Copy link
Copy Markdown
Contributor

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

codecov-commenter commented Dec 5, 2023 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 57.39130% with 49 lines in your changes missing coverage. Please review.
βœ… Project coverage is 70.01%. Comparing base (21aee4b) to head (150f7d7).
⚠️ Report is 151 commits behind head on mainline.

Files with missing lines 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.

πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • πŸ“¦ JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Dec 5, 2023 •

Copy link
Copy Markdown

πŸ• 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

Comment thread internal/pkg/cli/run_local.go Resolved
Comment thread internal/pkg/cli/run_local.go Resolved
Comment thread internal/pkg/cli/run_local.go Resolved
@CaptainCarpensir CaptainCarpensir changed the title feat: run local --use-task-role flag feat!: run local --use-task-role flag Dec 6, 2023

@KollaAdithya KollaAdithya left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks great!

Comment thread internal/pkg/cli/run_local.go Resolved
Comment thread internal/pkg/cli/run_local.go 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

@KollaAdithya KollaAdithya left a comment

Copy link
Copy Markdown
Contributor

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
@CaptainCarpensir
CaptainCarpensir deleted the cli/task-role-ecs-exec branch January 2, 2024 17:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

4 participants