This CDK project contains the following infrastructure:
- SNS topic
- SES configuration set
- A configuration set's destination to the SNS topic
If you try to deploy this CDK project to an AWS account, you will see the following error:
Resource handler returned message: "Cannot invoke "software.amazon.awssdk.services.ses.model.KinesisFirehoseDestination.iamRoleARN()" because the return value of "software.amazon.awssdk.services.ses.model.EventDestination.kinesisFirehoseDestination()" is null" (RequestToken: ..., HandlerErrorCode: InternalFailure)
I expect the resource creation to be completed successfully.
The event destination contains only a link to the SNS topic. No Kinesis Firehose been mentioned.
stack.yml
contains the synthesized CloudFormation stack.
npm ci
- install dependencies- Set AWS credentials using environment variables or aws-cli profile
npx cdk synth
emits the synthesized CloudFormation templatenpx cdk deploy
- deploy this stack to your default AWS account/regionnpx cdk diff
compare deployed stack with current state