aws / aws/aws-cdk

SES: The action "relay" produces within CfnMailManagerRuleSet Properties validation failed

Open
#33,207 2 comments 0 reactions 0 assignees View on GitHub
@aws-cdk/aws-ses bug needs-cfn p2
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### 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](https://github.com/user-attachments/assets/63e6eab6-8655-43d5-89bc-e8f4b993b432)

### Reproduction Steps

here the error:

![Image](https://github.com/user-attachments/assets/b5aca5e7-9540-49b2-958d-54d0e7ead506)

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
}
}
]
}
]
});

Contributor guide

Open the contributing guide

Research direction

Reproduce the provided TypeScript example with AWS CDK 2.177.0, focusing on CfnMailManagerRuleSet actions that include relay. Inspect the SES CloudFormation rule-set validation path and compare it with the relay resource configuration. Done means a rule set containing the relay action synthesizes or validates without the reported Properties validation error.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.