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: The action "relay" produces within CfnMailManagerRuleSet Properties validation failed #33207

Open
1 task
ttais2017 opened this issue Jan 28, 2025 · 2 comments
Labels
@aws-cdk/aws-ses Related to Amazon Simple Email Service bug This issue is a bug. needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed. p2

Comments

@ttais2017
Copy link

Describe the bug

When creating a CfnMailManagerRuleSet and using an action "relay", there is a validation error.

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Version

ℹ️ CDK Version: 2.177.0 (build b396961)

Expected Behavior

The relay will be used within the mail manager rule set

Current Behavior

given the code:

Image

Reproduction Steps

here the error:

Image

The manager rule set can be created nevertheless if you remove the relay. Something is wrong with the validation fo the block "relay". : )

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

ℹ️ CDK Version: 2.177.0 (build b396961)

Framework Version

No response

Node.js Version

22

OS

win

Language

TypeScript

Language Version

5.7

Other information

CODE:

const relayName = "ests-fargate";
const cfnMailManagerRelay = new ses.CfnMailManagerRelay(this, this.version + "forward2relay", {
  relayName: relayName,
  authentication: { noAuthentication: {} },
  serverName: "someendpoint.de",// this.nlb.loadBalancerDnsName,
  serverPort: 2525 });

const cfnMailManagerRuleSet = new ses.CfnMailManagerRuleSet(this, this.version + 'CfnMailManagerRuleSet4Fargate', {
  ruleSetName: this.version + 'CfnMailManagerRuleSet4Fargate',
  rules: [
      {
        name: this.version + "processor",
        actions: [
          {
            writeToS3: {
              roleArn: 'arn:aws:iam::597414363306:role/checker',
              s3Bucket: emailBucket.bucketName,
              s3Prefix: 'tel-from-inbound'
            },
            relay: {
              relay: cfnMailManagerRelay.attrRelayId
            }
          }
        ]
      }
  ]
});
@ttais2017 ttais2017 added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jan 28, 2025
@github-actions github-actions bot added the @aws-cdk/aws-ses Related to Amazon Simple Email Service label Jan 28, 2025
@ashishdhingra ashishdhingra self-assigned this Jan 28, 2025
@ashishdhingra ashishdhingra added p2 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 Jan 28, 2025
@ashishdhingra
Copy link
Contributor

ashishdhingra commented Jan 29, 2025

@ttais2017 Good morning. Could you please share the followint:

  • Region you are deploying to?
  • Run cdk synth and share the relevant CFN resource in YAML with us? Looks like for some reason CFN doesn’t consider it a valid resource spec and we need to find out if the cdk synth is doing right.

The mentioned error is thrown by CloudFormation. Feel free open an issue at https://github.com/aws-cloudformation/cloudformation-coverage-roadmap for CloudFormation team. I'm unsure if support for AWS::SES::MailManagerRelay and AWS::SES::MailManagerRuleSet resources is consistent across regions. For instance, if you refer CloudFormation schema at https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-resource-specification.html for us-east-2 region, AWS::SES::MailManagerRelay and AWS::SES::MailManagerRuleSet resources are not supported.

Thanks,
Ashish

@ashishdhingra ashishdhingra added 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 Jan 29, 2025
@ashishdhingra ashishdhingra removed their assignment Jan 29, 2025
@ttais2017
Copy link
Author

Hi,
tnx for answering.
I used eu-central-1 (Frankfurt) and I verified the CF Spec and those elements are supported. The way I resolved it partially was to use AwsSdkCalls (not included in this template).

KR,

--Miguel

ESFvMARG.template.json

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. 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