-
Notifications
You must be signed in to change notification settings - Fork 4.5k
(aws-cognito): SES region validity check is out of date #17795
Copy link
Copy link
Closed
Labels
@aws-cdk/aws-cognitoRelated to Amazon CognitoRelated to Amazon CognitobugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp1
Description
What is the problem?
It appears that there is a list of SES supported regions in code, and this list has become out of date.
Reproduction Steps
- Create a
UserPoolineu-north-1with an SES email config:
new UserPool(this, 'UserPool', {
email: UserPoolEmail.withSES({
fromEmail: 'test@example.com',
}),
});- Synthesize the stack
What did you expect to happen?
The template synthesizes as expected, as SES is available in eu-north-1
What actually happened?
The following error is produced:
Your stack is in eu-north-1, which is not a SES Region. Please provide a valid value for 'sesRegion'
CDK CLI Version
1.134.0
Framework Version
No response
Node.js Version
v14.18.1
OS
MacOS
Language
Typescript
Language Version
No response
Other information
Maybe we could remove this check entirely, and let it fail when deploying the CFN stack, if the SES region does not exist, to keep things more maintainable?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-cognitoRelated to Amazon CognitoRelated to Amazon CognitobugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp1