Skip to content

Is it possible to add Carbon Copy to CloudFormation CFT file for Cognito welcome email?

0

Hi,

We are trying to modify the cft template for CloudFormation to add emails to CC or BCC list so some admin users will be notified each time a new user account is created on Cognito. We looked into the AWS::Cognito::UserPool::EmailConfiguration section, and attempted to add 'CC' as a property. Unfortunately, it failed with message:

[#/EmailConfiguration: extraneous key [CC] is not permitted]

It seems that CC is indeed not a valid attribute for EmailConfiguration, as this page mentions no such thing at all:

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-emailconfiguration.html

So my question is, how can we enable CC in this case? Is there another section that we can add the CC attribute in CFT files? Or do we have to write a custom email sender lambda function to achieve this instead? Thanks.

1 Answer
0

While you cannot directly add CC or BCC in the AWS::Cognito::UserPool::EmailConfiguration, you can configure SES to send feedback notifications to SNS topics and subscribe admin email addresses to these topics. This ensures that admin users are notified whenever emails are sent by Cognito.

Use the SourceArn property to specify the ARN of an identity in Amazon SES that has been verified for use with SES. It can be an identity representing an email address or a domain.

answered 2 years ago

  • Hi Nitin

    Thanks a lot for your answer, I wonder though, does configuring SNS notifications for SES email delivery require writing Lambda functions? Or it is just as simple as editing CFT files or settings in AWS management console? It does not that much, but I am just trying to estimate how much time and effort this will be.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.