Skip to content

Commit b10916e

Browse files
authored
Docs: AWS copilot useful commands (#129)
2 parents 94a56e0 + 5057cf0 commit b10916e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/development/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,3 +235,15 @@ You can work on the app's Cloud infrastructure in the dev container by using the
235235
An active SSO session must be available to run the AWS commands, if it is not, run `aws sso login` inside the container to start a session.
236236

237237
Running thes commands in the dev container is made possible by the mapping defined in the [compose file](https://github.com/compilerla/pems/blob/main/compose.yml#L23) that maps the host's AWS credentials folder to the dev container at `/home/caltrans/.aws`. For convenience, you can also set the default AWS profile that will be used in the dev container to `pems` as shown in [`.env.sample`](https://github.com/compilerla/pems/blob/main/.env.sample#L18).
238+
239+
### Useful commands
240+
241+
Deploying
242+
243+
- `copilot svc deploy -n service-name` to [deploy a service](https://aws.github.io/copilot-cli/docs/commands/svc-deploy/) (local code and configuration) that has already been initialized
244+
245+
Monitoring
246+
247+
- `copilot svc show -n service-name` to [see the environment variables and other information](https://aws.github.io/copilot-cli/docs/commands/svc-show/) associated with a service
248+
- `copilot svc logs -n service-name --since 1h` to [see the logs](https://aws.github.io/copilot-cli/docs/commands/svc-logs/) for the past hour of a deployed service
249+
- `copilot svc exec -a app-name -e environment-name -n service-name` to [gain shell access](https://aws.github.io/copilot-cli/docs/commands/svc-exec/) to a running container

0 commit comments

Comments
 (0)