Infrastructure containing a Cognito User Pool, and an application integration client. This is to support / demo the script in the parent directory of this project.
-
Since this is a TypeScript CDK project, you should have npm installed (which is the package manager for TypeScript/JavaScript).
- You can find installation instructions for npm here.
-
Additionally, it would be required for your to have AWS CLI installed on your computer.
pip install awscli
. This means need to have python installed on your computer (if it is not already installed.)- You need to also configure and authenticate your AWS CLI to be able to interact with AWS programmatically. Detailed instructions of how you could do that are provided here
npm install
npx cdk bootstrap
npx cdk deploy CognitoCdkStack
Optionally you can specify a --profile
argument if you are not deploying to the default AWS profile. Alternatively you can switch your default aws profile by setting the AWS_PROFILE
environment variable.
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template