You can deploy this demo from either your local machine or using a cloud IDE such as AWS Cloud9. In order to ensure a clean and error free deployment experience, we highly recommend using AWS Cloud9 to deploy the project into an AWS account. AWS Cloud9 environment comes pre-configured with all the development tools required to deploy this project so that you can quickly get started.
If you would prefer to deploy this from your local machine, please ensure the following dependencies are installed before proceeding.
Dependency | Description | Version | Installation |
---|---|---|---|
node npm |
NodeJS and Node Package Manager | latest (minimum npm v7 & node v14) |
install |
Docker | Docker Desktop is an application for MacOS and Windows machines for the building and sharing of containerized applications and microservices. | latest | install |
AWS CDK Toolkit | The AWS CDK (Cloud Development Kit) Toolkit is a cli (command line interface) that is used to develop, build, and deploy CDK applications. | latest | install |
AWS CLI | The AWS command line interface | latest | install |
Search for "Cloud9" from the top search bar of the AWS console, click on "Cloud9". Once in the Cloud9 console follow the steps-
- On the Cloud9 console page click "Create environment" button.
- In the next screen, enter an environment name and an (optional) description. Click "Next step"
- In the "Configure settings" screen, change the "Instance type" to m5.large, leave everything as default and click "Next step"
-
Review your selected values in the "Review" screen and click "Create environment"
-
You will be navigated to the Coud9 IDE. Wait for the deployment to complete.
Search for "Cloud9" on the top search bar of the AWS Console. Click on "Cloud9", you will be navigated to the AWS Cloud9 console where you will see the Cloud9 environment. Select the environment, and click "Open IDE". You will be taken to the cloud IDE.
Verify that you have all the dependencies required in the Cloud9 environment required to build and deploy the project. At the terminal found in the bottom of the IDE type the following commands. If you do not see a terminal, open a new terminal by clicking the "+" button next to a tab then clicking "New Terminal".
Check node
version
node -v
Check npm
version
npm -v
Check docker
version
docker --version
Check AWS CDK version
cdk --version
Check the AWS CLI version
aws --version
While in the terminal window, clone this project repository using the command below by replacing the <repo_url>
with the URL of this repository.
git clone <this_repo_url> idp-human-in-the-loop
Once the repo clone is complete, you should now see a new directory idp-human-in-the-loop
in the left navigation pane of the Cloud9 IDE.