From 638ec449011837e3f894a47b135bd05c6e9e5583 Mon Sep 17 00:00:00 2001 From: Aiden Carpenter <72675057+CaptainCarpensir@users.noreply.github.com> Date: Wed, 10 Jan 2024 09:20:54 -0800 Subject: [PATCH] docs: v1.33.0 blog run local `--use-task-role` flag (#5596) By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License. --- site/content/blogs/release-v133.en.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/site/content/blogs/release-v133.en.md b/site/content/blogs/release-v133.en.md index 9f8905686f6..26d3791fd4e 100644 --- a/site/content/blogs/release-v133.en.md +++ b/site/content/blogs/release-v133.en.md @@ -33,6 +33,11 @@ Copilot v1.33 brings big enhancements to help you develop more flexibly and effi ## Use ECS Task Role for `copilot run local` +`copilot run local` now has a flag `--use-task-role` which is enabled by default. When enabled, Copilot will retrieve the IAM permissions from your deployed service and inject them into the containers created by `run local`. +This means that your containers will have the same permissions that they do on the cloud, enabling you to test more accurately. + +If you don't want to use the `TaskRole` permissions, or if Copilot fails to retrieve them, you can disable this feature by setting `--use-task-role=false`. + ## Container dependencies support for `copilot run local` `copilot run local` now respects the [`depends_on`](../docs/manifest/lb-web-service.md#image-depends-on) specified in the service manifest. @@ -58,4 +63,4 @@ startup: essential: false ``` -This means that your main container will start only after nginx sidecar container has started and nginx will start only after startup container is completed successfully. \ No newline at end of file +This means that your main container will start only after nginx sidecar container has started and nginx will start only after startup container is completed successfully.