Skip to content

(aws-cognito): SES region validity check is out of date #17795

@straygar

Description

@straygar

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

  1. Create a UserPool in eu-north-1 with an SES email config:
new UserPool(this, 'UserPool', {
  email: UserPoolEmail.withSES({
    fromEmail: 'test@example.com',
  }),
});
  1. 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?

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-cognitoRelated to Amazon CognitobugThis issue is a bug.effort/smallSmall work item – less than a day of effortp1

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions