Aws-cdk: [@aws-cdk/aws-ses] EventDestinationProperty missing snsDestination

Created on 26 Oct 2020  路  7Comments  路  Source: aws/aws-cdk

:question: General Issue

The Question

I am trying to set up an AWS SES configuration set to track opens on emails I send through cdk. I noticed that the EventDestinationProperty for SES does not include an SNS event destination even though that is available in the console:

image

Other information

That event destination is available for the pinpoint service: EventDestinationProperty.

image

@aws-cdaws-ses blocked needs-cfn

Most helpful comment

All 7 comments

@iliapolo any update? This is a blocking issue for us.

I'm facing the same issue.

I tried using the CfnConfigurationSetEventDestination from @aws-cdk/aws-pinpointemail (@1.72.0) instead like this:

new CfnConfigurationSetEventDestination(this, "ses-email-notification-bounce-sns", {
      configurationSetName: "ses-config-notifications", // this is my SES configuration set
      eventDestinationName: "ses-email-notification-bounce-sns",
      eventDestination: {
        matchingEventTypes: ["bounce"],
        snsDestination: {
          topicArn: "..."
        }
      }
    })

But it failed with:

The event destination contains an invalid event type. (Service: AmazonPinpointEmail; Status Code: 400; Error Code: BadRequestException;

I guess the underlying issue is that you can't specify SNS event destinations in CloudFormation:

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-eventdestination.html

image

Good find. I just reached out to CloudFormation support about that.

I've contaced support via Twitter as well https://twitter.com/AWSSupport/status/1326071942328315904

Response from AWS Support:

This is an update to inform you that I have reached out to the internal team and there is already a Feature Request issue raised with the internal team for this and that internal service team is actively working on this.

Was this page helpful?
0 / 5 - 0 ratings