-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Amplify Gen2] please add a custom sender lambda trigger
as a defineAuth's attribute
#1607
Comments
I was looking into contributing this feature into the repo and I saw #2087 merged yesterday, so I would like to figure some things out before diving deeper if that's okay. The feature introduced this new type: export type CustomEmailSender = {
handler: IFunction;
kmsKeyArn?: string;
}; If I want to implement Thanks for any information |
I also find it a bit confusing that |
Thank you for raising this point! After reviewing the current structure and CloudFormation's requirements, I believe refactoring the KMS key configuration to reside at the Why refactor to a shared
|
@ggj0418 , thank you for the detailed proposal. I agree that it's an ideal way to handle both custom sms and email. However, the challenge is that it will be a braking change and we can't do this refactor until we are ready to ship a Major version of the library. Until then I see us supporting this feature with export type CustomEmailSender = {
handler: IFunction;
kmsKeyArn?: string;
};
export type CustomSmsSender = {
handler: IFunction;
kmsKeyArn?: string;
}; And validate and fail if the |
Hey @ggj0418 I also agree that it makes the most sense to refactor it out -- and thank you for the detailed proposal! @Amplifiyer 's proposal makes sense as an intermediate solution until we're ready to ship a breaking change, despite the need to specify the same value twice |
Environment information
Description
these values are the defineAuth method's option attributes.
there is no custom sender lambda value.
To reach that requirement, i had to custom the userPool on a phase of
amplify backend cdk
.The sample code is here.
and this is the function's handler code
I hope the
amplify backend
supply this feature officiallyThe text was updated successfully, but these errors were encountered: