-
Hey, welcome to our HW2 assigment for cloud computing course! :)
-
You can run the run.bat file (for Windows) or run.sh file (for mac) in the parent directory or follow the instructions below.
-
if you ran the script you'll see the 2 public IP printed to the screen afte the deployment is finished.
- Please install nodejs on your computer (node -v to confirm and check version)
- Please install aws-cdk gloablly by typing "npm install -g aws-cdk"
- Please go to "infra" folder and install all project dependencies using "npm install"
- Please log in to your account
- If it is the first time you use aws cdk please type "cdk bootstrap"
- (Deploying stacks with the AWS CDK requires dedicated Amazon S3 buckets and other containers to be available to AWS CloudFormation during deployment)
- For deployment please type "cdk deploy".
- After deployment finished you will see the 2 endpoint node instance public IP printed to screen:
- Outputs: InfraStack.InstancePublicIp = <IP>
- Wait until the instance will stop to initialize (approx 5min) and browse to the public IP on port 8080.
- All infrastructure will be deployed in us-east-1 region.
- We used fastapi as the framework.
- Please read the CDK documentation for typescript if needed - https://docs.aws.amazon.com/cdk/v2/guide/getting_started.html