-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(ses): SES->SNS subscription fails due to KinesisFirehoseDestination is null #32501
Comments
Not reproducible using CDK version import * as cdk from 'aws-cdk-lib';
import * as sns from 'aws-cdk-lib/aws-sns';
import * as ses from 'aws-cdk-lib/aws-ses';
export class CdktestStackNew extends cdk.Stack {
constructor(scope: cdk.App, id: string, props?: cdk.StackProps) {
super(scope, id, props);
const snsTopic = new sns.Topic(this, 'TestSnsTopic', {
fifo: false
});
const sesConfigSet = new ses.ConfigurationSet(this, "TestSESConfigSet", {
configurationSetName: "TestSESConfigSet"
});
sesConfigSet.addEventDestination('TestSNSDestination', {
destination: ses.EventDestination.snsTopic(snsTopic)
});
}
} synthesizes to below CloudFormation stack: Resources:
TestSnsTopic9011E4C7:
Type: AWS::SNS::Topic
Properties:
FifoTopic: false
Metadata:
aws:cdk:path: CdktestStackNew/TestSnsTopic/Resource
TestSnsTopicPolicy2AC7225E:
Type: AWS::SNS::TopicPolicy
Properties:
PolicyDocument:
Statement:
- Action: sns:Publish
Condition:
StringEquals:
AWS:SourceAccount: "<<ACCOUNT-ID>>"
AWS:SourceArn:
Fn::Join:
- ""
- - "arn:"
- Ref: AWS::Partition
- :ses:us-east-2:<<ACCOUNT-ID>>:configuration-set/
- Ref: TestSESConfigSetA1C354EA
Effect: Allow
Principal:
Service: ses.amazonaws.com
Resource:
Ref: TestSnsTopic9011E4C7
Sid: "0"
Version: "2012-10-17"
Topics:
- Ref: TestSnsTopic9011E4C7
Metadata:
aws:cdk:path: CdktestStackNew/TestSnsTopic/Policy/Resource
TestSESConfigSetA1C354EA:
Type: AWS::SES::ConfigurationSet
Properties:
Name: TestSESConfigSet
Metadata:
aws:cdk:path: CdktestStackNew/TestSESConfigSet/Resource
TestSESConfigSetTestSNSDestinationC6540474:
Type: AWS::SES::ConfigurationSetEventDestination
Properties:
ConfigurationSetName:
Ref: TestSESConfigSetA1C354EA
EventDestination:
Enabled: true
MatchingEventTypes:
- send
- reject
- bounce
- complaint
- delivery
- open
- click
- renderingFailure
- deliveryDelay
- subscription
SnsDestination:
TopicARN:
Ref: TestSnsTopic9011E4C7
DependsOn:
- TestSnsTopicPolicy2AC7225E
Metadata:
aws:cdk:path: CdktestStackNew/TestSESConfigSet/TestSNSDestination/Resource
CDKMetadata:
Type: AWS::CDK::Metadata
Properties:
Analytics: v2:deflate64:H4sIAAAAAAAA/22LwQ6CQAxEv4X7UoGY6B29G/Bu1qWYAnYNXSBms/9ugMQDeunMvLxmkB4ySCI9SWyqNu7oDr502rRKT3LzwgL+al9kVF7zWpZ7sR2Z9xeuMyhBAZ9brukx9NqR5RLdbP2yDTiPyO6E4ogX9O9p64QwWwWKHXqDQbGtEBrZjekRsgT2USNEcT+woydCseYHjvNE9vMAAAA=
Metadata:
aws:cdk:path: CdktestStackNew/CDKMetadata/Default
Parameters:
BootstrapVersion:
Type: AWS::SSM::Parameter::Value<String>
Default: /cdk-bootstrap/hnb659fds/version
Description: Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip] This deploys fine as shwon below:
@atnartur Could you please try using the latest version of CDK (you should update both your Thanks, |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
I'm investigating the issue to add more details about the bug. I will add them next week. |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
Since I met an @ashishdhingra thanks for your assistance! |
Comments on closed issues and PRs are hard for our team to see. |
Describe the bug
If you try to add an SES event destination to SNS using CDK, CloudFormation fails with the following error during deployment:
You can find the CDK project's example in the following repository: https://github.com/atnartur/cdk-ses-sns-subscription-bug
A CDK project contains the following infrastructure:
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
I expect the resource creation to be completed successfully.
Current Behavior
CDK deployment fails with the following error:
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.171.0 (build 4957967)
Framework Version
No response
Node.js Version
v22.11.0
OS
MacOS
Language
TypeScript
Language Version
TypeScript (5.6.3) | Python (3.9.20)
Other information
No response
The text was updated successfully, but these errors were encountered: