This cdk will build an AWS cloud infrastructure for the UMCCR Data Status Page.
The directories:
- stacks - Contains the applications stack
- AWS cloudfront
Access s3 bucket react code - AWS S3 bucket
Store react build code - Route 53
Setup DNS for the samplesheet check for cloudfront
It is recomended to create a virtual environment for the app.
To do so please follow the instruction below.
Change your directory to the root of this readme file.
$ cd deploy
Once the virtualenv is activated, you can install the required dependencies.
$ npm install
Prerequisite
- A valid SSL Certificate in
us-east-1
region at ACM for all the domain name needed. See here (alias_domain_name
on the props variable) on what domain need to be included, determined based on which account is deployed. - SSM Parameter for the certificate ARN created above with the name of
/data_portal/status_page/ssl_certificate_arn
Deploying the stack without prerequisite above may result in a stack rollback
There are 2 stacks in this application:
- data_portal_status_page - Contains the applications stack
- pipeline - Contains the pipeline for the stack to run and self update
To deploy the application stack, you will need to deploy the pipeline
stack. The pipeline stack will take care of the data_portal_status_page
stack deployment.
Deploy pipeline stack
$ cdk deploy DataPortalStatusPagePipeline --profile=dev
The cdk.json
file tells the CDK Toolkit how to execute your app.
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testsnpx cdk deploy
deploy this stack to your default AWS account/regionnpx cdk diff
compare deployed stack with current statenpx cdk synth
emits the synthesized CloudFormation template