terraform-aws-cognito-user-pool icon indicating copy to clipboard operation
terraform-aws-cognito-user-pool copied to clipboard

Accept custom email_message and email_subject for code verification

Open jfharden opened this issue 4 years ago • 2 comments

The email configuration options for verification message customisation only accept email_message_by_link and email_subject_by_link. This means you cannot customise the email subject and message when using CONFIRM_BY_CODE type.

It would be good to also accept email_message and email_subject parameters so the verification message when using CONFIRM_BY_CODE could also be set.

jfharden avatar Apr 12 '21 16:04 jfharden

I've just realised I can set them with the input email_verification_message and email_verification_subject. It would be good if they could also be part of the verification_message_template as email_message and email_subject too, although definitely not required and adds extra complexity (so maybe just a readme update to mention where the setting is)

jfharden avatar Apr 12 '21 17:04 jfharden

Hello! I also have the problem with email_message. According to the terraform docs about Cognito User Pool resource email_message attribute doesn't require to contain {username} placeholder. However, in the code you assigning to email_verification_message attribute the variable that must contain {username} and {####} placeholders. In our project, we can't pass the username to {username} placeholder in the email verification message. See first note here image

It would be good to separate verification_message_template and invite_message_template attributes in different variables.

rufusnufus avatar May 18 '22 11:05 rufusnufus