Skip to content
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: EventDestination does not have eventBridge as a destination option #30677

Open
anishsundarjee opened this issue Jun 26, 2024 · 1 comment
Assignees
Labels
@aws-cdk/aws-ses Related to Amazon Simple Email Service bug This issue is a bug. effort/medium Medium work item – several days of effort needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed. p2

Comments

@anishsundarjee
Copy link

anishsundarjee commented Jun 26, 2024

Describe the bug

I'm trying to add the default event bus as the event destination for my mailing events.

My use case is that I want to save delivery information about the emails being sent from SES for compliance reasons.
Am able to achieve this if I setup the configuationSet and event destination via the AWS CLI, however I can't see the option to add eventBridge as a destination in cdk.

Expected Behavior

Be able to set EventBridge as a event destination

Current Behavior

not able to set EventBridge as a event destination

Reproduction Steps

  appState.sesConfigurationSet = new ses.CfnConfigurationSet(appState.stack, `${PREFIX}ConfigurationSet`, {
    name: `${PREFIX}ConfigurationSet`,
    reputationOptions: {
      reputationMetricsEnabled: true,
    },
  });

  appState.sesEventDestination = new ses.CfnConfigurationSetEventDestination(appState.stack, `${PREFIX}EventDestination`, {
    configurationSetName: appState.sesConfigurationSet.name || "",
    eventDestination: {
      matchingEventTypes: ['delivery'],
      name: `${PREFIX}EventDestination`,
      enabled: true,
      eventBridgeDestination: {
        arn: appState.defaultEventBus.eventBusArn || "",
      },
      // set event bridge as destination with name AWS_SES_SEND_EMAIL and rules for bounce, complaint and delivery
    },
  });

Possible Solution

Additional Information/Context

No response

CDK CLI Version

1.199.0

Framework Version

No response

Node.js Version

18

OS

Mac OS

Language

TypeScript

Language Version

3.8

Other information

No response

@anishsundarjee anishsundarjee added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jun 26, 2024
@github-actions github-actions bot added the @aws-cdk/aws-ses Related to Amazon Simple Email Service label Jun 26, 2024
@ashishdhingra ashishdhingra self-assigned this Jun 26, 2024
@ashishdhingra ashishdhingra added investigating This issue is being investigated and/or work is in progress to resolve the issue. and removed needs-triage This issue or PR still needs to be triaged. labels Jun 26, 2024
@ashishdhingra
Copy link
Contributor

ashishdhingra commented Jun 26, 2024

Findings:

CFN spec was updated 2 days ago in commit cdklabs/awscdk-service-spec@65cd752. It might take few days for changes to flow to CDK.

@anishsundarjee You might want to use CDK v2 since v1 is deprecated.

@ashishdhingra ashishdhingra added p2 effort/medium Medium work item – several days of effort needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed. and removed investigating This issue is being investigated and/or work is in progress to resolve the issue. labels Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-ses Related to Amazon Simple Email Service bug This issue is a bug. effort/medium Medium work item – several days of effort needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed. p2
Projects
None yet
Development

No branches or pull requests

2 participants