Skip to content

Commit

Permalink
docs: v1.33.0 blog run local --use-task-role flag (#5596)
Browse files Browse the repository at this point in the history
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.
  • Loading branch information
CaptainCarpensir authored Jan 10, 2024
1 parent af7c209 commit 638ec44
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion site/content/blogs/release-v133.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
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.

0 comments on commit 638ec44

Please sign in to comment.