Skip to content

Commit

Permalink
Merge pull request #6951 from uktrade/TET-763-Update-data-hub-fronten…
Browse files Browse the repository at this point in the history
…d-sop

update SOP
  • Loading branch information
bau123 authored Jun 28, 2024
2 parents 6391753 + 1bb0948 commit 4815842
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,17 @@ This method is recommended if you are only making frontend changes.

5. Go to the [Playbook](https://readme.trade.gov.uk/docs/playbooks/datahub.html#environments), find the environment you want to use in the Admin URLs section, and set this URL to the environment variable `API_ROOT`. You will need to remove `/admin` from the end of the API path.

6. Go to Vault, look in datahub-fe, and click on the environment you want to use. Change the following environment variables in your `.env` file to the ones specified in Vault:
6. Go to the parameter store in AWS (https://eu-west-2.console.aws.amazon.com/systems-manager/parameters/?region=eu-west-2&tab=Table). Change the following environment variables in your `.env` file to the ones specified in the parameter store. Remember to select the correct envriorment (e.g dev, uat, staging) you are using.

```
DATA_HUB_BACKEND_ACCESS_KEY_ID=frontend-key-id
DATA_HUB_BACKEND_SECRET_ACCESS_KEY=frontend-key
```
> **Warning**
> Gov PaaS will be deprecated from July 2024 and keys will be moved from Vault to Parameter Store.
>
> Go to Vault, look in datahub-fe, and click on the environment you want to use. Change the following environment variables in your `.env` file to the ones specified in Vault:

```
DATA_HUB_BACKEND_ACCESS_KEY_ID=frontend-key-id
DATA_HUB_BACKEND_SECRET_ACCESS_KEY=frontend-key
```

7. The environment variables copied from `sample.env` are set up for running both the frontend and the API using the docker. To run the frontend natively, the following variables will need to be changed to:

Expand Down Expand Up @@ -190,7 +195,7 @@ These instructions work for both the dockerised environment and the native envir

List of all environment variables can be found in the source code of [envSchema.js](./src/config/envSchema.js).

Check Vault for environment variables that point to other environments, such as staging and dev.
Check AWS parameter store for environment variables that point to other environments, such as staging and dev.

## Making changes

Expand Down

0 comments on commit 4815842

Please sign in to comment.