A repository for an article on bobbyhadz.com
If you use CDK v1, switch to the cdk-v1 branch
-
Clone the repository
-
Install the dependencies
npm install
- Create an
env.ts
file in the root directory, providing the variables listed in theenv.example.ts
file:
export const SES_REGION = 'YOUR_SES_REGION';
export const SES_EMAIL_TO = 'YOUR_SES_RECIPIENT_EMAIL';
export const SES_EMAIL_FROM = 'YOUR_SES_SENDER_EMAIL';
- Create the CDK stack
npx aws-cdk deploy cdk-stack \
--outputs-file ./cdk-outputs.json
-
Open the AWS Console and the stack should be created in your default region
-
Cleanup
npx aws-cdk destroy