Before you deploy, you must have the following in place:
- AWS Account
- GitHub Account
- Node 10 or greater
- Amplify CLI 4.13.1 or greater installed and configured
In this step we will use the Amplify console to deploy and build the front-end application automatically.
- Fork this repository.
- 1-click deployment button above. Make sure to start the deployment before continuing.
- Go to the Amplify Console.
- Select the smartonfhir app.
- Wait until Provision, Build, Deploy and Verify are all green.
- In the left-hand menu under App Settings, click on Environment Variables then Manage variables.
- Please add the following environment variables:
Variable: REACT_APP_AWS_REGION Value: ca-central-1
- Click Save.
In this step we will attach a policy to an Amplify created Cognito Role.
- In the AWS Console, go to the AWS IAM service page.
- In the left-hand menu, click on Roles.
- Click on the role named "amplify-smartonfhir-dev-{Some number}-authRole".
- Next, click the Attach policies button.
- In the search box, type "ComprehendMedical", then select the checkbox for "ComprehendMedicalFullAccess".
- Click Attach policy.