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 installFor the first time run cdk bootstrap command:
npx cdk bootstrapRun cdk synth to synthesize an AWS CloudFormation template:
npx cdk synthRun cdk deploy:
npx cdk deploySpecify a named profile parameter to AWS CDK commands if needed
npx cdk command_name --profile your_profile_namenpm run buildcompile typescript to jsnpm run watchwatch for changes and compilenpm run testperform the jest unit testsnpx cdk deploydeploy this stack to your default AWS account/regionnpx cdk diffcompare deployed stack with current statenpx cdk synthemits the synthesized CloudFormation template
