This is a proof of concept of AWS CDK application that deploys and hosts a single (dummy) Streamlit application. This application communicates with a 'Hello World' model (dummy algorithm) hosted on a separate AWS service.
By default, [default]
AWS profile is used for AWS CDK configuration.
If you want to use another named profile, you could specify it in cdk.json
file as"profile": "your_profile_name"
or provide a --profile your_profile_name
parameter to AWS CDK commands.
Make sure you have typescript
and Docker
installed.
Install the required dependencies:
npm install
For the first time run cdk bootstrap command:
npx cdk bootstrap
Run cdk synth to synthesize an AWS CloudFormation template:
npx cdk synth
Run cdk deploy:
npx cdk deploy
Specify a named profile parameter to AWS CDK commands if needed
npx cdk command_name --profile your_profile_name
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