Describe the bug
Lambda trigger definitions for "Pre Token Generation" and "User Migration" are missing from the allowed values.
To Reproduce
const pool = new cognito.UserPool(this, 'UserPool', {
lambdaTriggers: {
preTokenGeneration: handler,
}
});
Expected behavior
Ability to define preTokenGeneration and userMigration triggers.
Version:
@aws-cdk/[email protected]
This is quite an omission, we are facing the same problem too.
Unfortunately it seems that it is missing from CloudFormation: https://forums.aws.amazon.com/thread.jspa?threadID=268907
@electrified is correct - those features are not supported by CloudFormation, and hence cannot be supported by the CDK, unfortunately.
This is quite an omission, we are facing the same problem too.
Unfortunately it seems that it is missing from CloudFormation: https://forums.aws.amazon.com/thread.jspa?threadID=268907
@electrified Thanks for linking the forum post. Yes, I have passed this along to the Cloudformation and Cognito groups. Until those are added to cloudformation there is nothing we can do to add that functionality.
Thank you for bringing this back to our attention!
I'm going to close this issue for now. Once those features are added to Cfn, I will reopen this as a feature request.
In an effort to have better visibility of Cfn support gaps, we are going to keep these open, so I am going to reopen this issue.
CloudFormation added support for both of these triggers on August 5th.
not well understood
Most helpful comment
CloudFormation added support for both of these triggers on August 5th.