question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
corymhallcommented, Dec 6, 2021

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

0reactions
github-actions[bot]commented, Dec 10, 2021

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

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found