DCB Admin must be deployed with AWS Amplify, a fast and modern AWS solution that uses CloudFront proxying by default. The steps This document outlines how to deploy DCB Admin on with AWS Amplify are outlined below.
Getting started
Sign into the AWS management console and open the AWS Amplify console for your organisation. You should see a page with the title ‘All apps’.
For your first time, you will need to create an Amplify application. To do this, select ‘New app’, and then select ‘Host web app’.
On the next page, select GitLab as your repository provider, and click ‘Continue’.
On the ‘Add repository branch’ page, select the
dcb-admin-ui
repository. You will then be prompted to select a branch. Knowledge Integration will have provided you with the name of the branch to choose: please select this branch and continue.In the IAM Role section, choose ‘Create and use a new service role’ to allow Amplify to automatically create a service role for you.
If you have a previously created service role that you want to use instead, select that option.
Choose ‘Next’, and then click ‘Save and deploy’.
...
Example environment variables
DCB_API_BASE | URL of your DCB deployment |
DCB_ES_URL | |
DISCOVERY_SCAFFOLD_URL | URL of your discovery scaffold |
KEYCLOAK_ID | dcb |
KEYCLOAK_ISSUER | |
KEYCLOAK_REFRESH | |
KEYCLOAK_SECRET | UX0mIH71CEbRNk3RWim0L6lmmHlTQ9MH |
NEXTAUTH_SECRET | jkdhfkjsahfdjkhsdkjf73 |
NEXTAUTH_URL | URL of your deployment |
Common errors and how to solve them
...