copilot svc exec
executes a command in a running container part of a service.
-a, --app string Name of the application.
-c, --command string Optional. The command that is passed to a running container. (default "/bin/bash")
--container string Optional. The specific container you want to exec in. By default the first essential container will be used.
-e, --env string Name of the environment.
-h, --help help for exec
-n, --name string Name of the service, job, or task group.
--task-id string Optional. ID of the task you want to exec in.
--yes Optional. Whether to update the Session Manager Plugin.
Examples
Start an interactive bash session with a task part of the "frontend" service.
$ copilot svc exec -a my-app -e test -n frontend
Runs the 'ls' command in the task prefixed with ID "8c38184" within the "backend" service.
$ copilot svc exec -a my-app -e test --name backend --task-id 8c38184 --command "ls"
What does it look like?
Info
exec: true
is set in your manifest before deploying the service.exec
is not supported for Windows containers.RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4