aws_cognito.UserPool
doesn't wait for a new aws_ses.EmailIdentity
to be ready
#28531
Labels
@aws-cdk/aws-cognito
Related to Amazon Cognito
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p3
Describe the feature
I might be doing something wrong, but I'm using aws_cognito.UserPoolEmail.withSes(), and no matter what I tried, I couldn't get CloudFormation to wait until a new
aws_ses.EmailIdentity
was ready before trying to find it to use it in a CognitoUserPool
.Use Case
I'd like to use a single CDK stack to create both an
aws_ses.EmailIdentity
and aaws_cognito.UserPool
that references the Simple Email Service'sEmailIdentity
. I'd also like to create anaws_ses.ReceiptRuleSet
in the same stack as theaws_ses_EmailIdentity
without having to add a lot ofaddDependency()
calls.Proposed Solution
If it's possible,
aws_cognito.UserPoolEmail.withSes
should allow anaws_ses.EmailIdentity
to be passed in to make sure any dependencies are properly configured. The same would also be nice for anses.ReceiptRuleSet
.Other Information
The below is what I tried, but no matter what
add_dependency()
calls I added, I couldn't get it to work with a single stack and had to split it up into two separate stacks. I kept getting errors like this:Here's the Python code:
Acknowledgements
CDK version used
2.117.0
Environment details (OS name and version, etc.)
Windows 11
The text was updated successfully, but these errors were encountered: