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.
AWS CloudFormation currently shows an InternalFailure error instead of an AccessDenied error.
So, to resolve the issue you need to add more actions to the policy (e.g. ses:GetConfigurationSetEventDestinations, ses:GetConfigurationSet...).
AWS Support has been notified about the issue with the incorrect error code display. I hope it will be fixed shortly.
npm ci- install dependencies- Set AWS credentials using environment variables or aws-cli profile
npx cdk synthemits the synthesized CloudFormation templatenpx cdk deploy- deploy this stack to your default AWS account/regionnpx cdk diffcompare deployed stack with current state