Skip to content

Docs: Cloud infra development #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/development/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,3 +219,19 @@ Use the VS Code Quick Open pane with `Ctrl`/`Cmd` + `P` and enter:
```

To focus on the `Testing` pane on the left side. Click the play button to run the unit tests.

## Work with the Cloud infrastructure

You can work on the app's Cloud infrastructure in the dev container by using the `aws` and `copilot` AWS CLIs. Successfully running the commands requires the container's host to be configured for authentication with IAM Identity Center by running `aws configure sso` and going through the setup. You can use the following settings:

- `SSO session name (Recommended): pems`
- `SSO start URL [None]: url_provided_by_caltrans`
- `SSO region [None]: us-west-2`
- `SSO registration scopes [None]:`
- `Default client Region [None]: us-west-2`
- `CLI default output format (json if not specified) [None]:`
- `Profile name [123456789011_ReadOnly]: pems`

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.

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).
Loading