You will need a verified email address in AWS SES to receive emails. And OpenAI API key to use the API.
Then set the environment variables in the env.ts file.
Then deploy the stack using the following command:
cdk deploy
Optional: run npx cdk bootstrap
to bootstrap the aws account if you haven't done so.
After the stack is deployed, update email receiving settings for SES, set the recipient condition to your ses verified email and set the actions to save email to S3 bucket and to send email to the lambda function.
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