-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.ts
More file actions
20 lines (16 loc) · 894 Bytes
/
main.ts
File metadata and controls
20 lines (16 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { App } from 'aws-cdk-lib';
import { CognitoSendGridStack } from './stacks/cognito-sendgrid-stack';
import { DeploymentStage } from './types';
const devEnv = {
account: process.env.CDK_DEFAULT_ACCOUNT,
region: process.env.CDK_DEFAULT_REGION,
};
const app = new App();
new CognitoSendGridStack(app, 'firstblox-cdk-ts-cognito-sendgrid-dev', {
env: devEnv,
stage: DeploymentStage.DEV,
applicationName: 'cognito-sendgrid-poc', // TODO: replace with your application name. Resources like SSM param names interpolate this.
noReplyEmailAddress: process.env.NO_REPLY_EMAIL_ADDRESS || 'noreply@example.com', // TODO: Replace with a noreply email address validated in SendGrid.
errorNotificationEmail: process.env.ERROR_NOTIFICATION_EMAIL_ADDRESS || 'errors@example.com', // TODO: Replace with email address to receive failure events from Cognito Lambda trigger.
});
app.synth();