(aws-cognito): SES region validity check is out of date
See original GitHub issueWhat 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
UserPool
ineu-north-1
with 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?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Regions and Amazon SES - Amazon Simple Email Service
Provides information about Regions and endpoints in Amazon SES. ... Before you can send email using Amazon SES, you have to verify that...
Read more >Email settings for Amazon Cognito user pools
You can customize the SES Region, Configuration Set, and FROM sender name only when you choose Send email from Amazon SES. To use...
Read more >Quotas in Amazon Cognito
Applications must validate JWT tokens before trusting them. You can verify the signature and validity of tokens on the client side without sending...
Read more >Using the refresh token - Amazon Cognito - AWS Documentation
The ID and access tokens have a minimum remaining validity of 2 minutes. If the refresh token is expired, your app user must...
Read more >Document history for Amazon Cognito
Change Description Date
New Facebook API Versioning Added version selection to Facebook API. April 3, 2020
Amazon Cognito general availability July 10, 2014
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@straygar ah yeah looks like the docs are not up to date. Thanks for reporting this!
I think your suggestion is probably the way to go, just remove the check altogether and allow CloudFormation to fail if it is not configured correctly.
⚠️COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.