Skip to content

Commit

Permalink
docs(deploy): add information concerning SSM params
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneRifle committed Jun 24, 2021
1 parent f8e8125 commit ef7d79f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/DEPLOYMENT_SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Infrastructure
- AWS Elastic Beanstalk / EC2 for hosting and deployment
- AWS Elastic File System for mounting files (i.e. SingPass/MyInfo private keys into the `/certs` directory)
- AWS S3 for image and logo hosting, attachments for Storage Mode forms
- AWS Service Manager - Parameter Store, for holding environment variable configuration

DevOps

Expand Down Expand Up @@ -104,8 +105,22 @@ The following env variables are set in Travis:

## Environment Variables

These are configured by creating groups of environment variables formatted like `.env` files in the Parameter
Store of AWS Service Manager. These groups have names formatted as `<environment>-<category>`.

The environment for each group is user-defined, and should be specified in the Elastic Beanstalk configuration
as the environment variable `SSM_PREFIX`.

The list of categories can be inferred by looking at the file `.ebextensions/env-file-creation.config`.

### Core Features

#### AWS Service Manager

| Variable | Description |
| :------------------ | ---------------------------------------------------------------------------------------------------------------- |
| `SSM_PREFIX` | String prefix (typically the environment name) for AWS SSM parameter names to create a .env file for FormSG. |

#### App Config

| Variable | Description |
Expand Down

0 comments on commit ef7d79f

Please sign in to comment.