This guide will walk you through how to deploy
This enhanced authentication method provides a seamless experience for users. The project is written in TypeScript and requires three arguments: email, ses_email_arn, and project_prefix.
project_prefix is an arbitrary string to define the name of your project. It defaults to: single-sign-on-demo-cdk
Follow the steps below to deploy the project:
-
Ensure you have Node.js and npm (Node Package Manager) installed on your machine.
-
Ensure that you have an email registered with SES, note the ARN this will be necessary for the CDK step later.
-
Ensure that the CDK
- First, install the project dependencies.
npm install
- Build the project dependencies (Websockets, Frontend, etc)
npm run build-dependencies.
- Deploy the CDK using the following commands.
cdk deploy -- -c email=YOUR_EMAIL -c ses_email_arn=YOUR_SES_EMAIL_ARN -c project_prefix=YOUR_PROJECT_PREFIX
cdk deploy -- -c email=YOUR_EMAIL -c ses_email_arn=YOUR_SES_EMAIL_ARN -c project_prefix=YOUR_PROJECT_PREFIX
Replace YOUR_EMAIL, YOUR_SES_EMAIL_ARN, and YOUR_PROJECT_PREFIX. The project prefix can be anything.
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