Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. 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’.

  2. For your first time, you will need to create an Amplify application. To do this, select ‘New app’, and then select ‘Host web app’.

  3. On the next page, select GitLab as your repository provider, and click ‘Continue’.

  4. On the ‘Add repository branch’ page, select the dcb-admin-ui repository. You will then be prompted asked to select a branch. Knowledge Integration will have provided : we will provide you with the name of the branch to choose: please select this branch select, so please choose that one and continue.

  5. In the IAM Role section, choose ‘Create and use a new service role’ to allow Amplify to automatically create a service role for you.

    1. If you have a previously created service role that you want to use instead, select that option.

  6. Choose ‘Next’, and then click ‘Save and deploy’.

...

  1. To set up the necessary environment variables for DCB Admin, you must navigate to ‘App settings’ and then to ‘Environment variables’.

  2. Enter the environment variables from the file we will provide you have been provided with: some are deployment-specific (see the example table below).

  3. You will then need to modify the Amplify build specification file amplify.yml to make these variables accessible to Next.js. This can be found under ‘App build specification’ in ‘Build settings’. Simply click ‘Edit’ and add these lines under build: commands:

...