From ea2129f2af59f3a4051aa2eeb7b2a82dc65a3d6b Mon Sep 17 00:00:00 2001 From: amazon-meaisiah Date: Thu, 19 Mar 2020 20:44:36 -0700 Subject: [PATCH] Add some rudimentary copy for the email --- cloudformation/template.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/cloudformation/template.yaml b/cloudformation/template.yaml index 84de67b22..c6db65933 100644 --- a/cloudformation/template.yaml +++ b/cloudformation/template.yaml @@ -1297,8 +1297,33 @@ Resources: AllowAdminCreateUserOnly: !If [ InviteAccountRegistrationMode, 'true', 'false', ] + InviteMessageTemplate: + EmailSubject: 'Developer Portal - Invitation' + EmailMessage: !Join [ '', [ + '

Developer Portal

You have been invited to access the developer portal at ', + !If [ 'DevelopmentMode', + !Join [ '', [ 'https://', !GetAtt DevPortalSiteS3Bucket.RegionalDomainName, '/index.html' ]], + !If [ + 'UseCustomDomainName', + !Join [ '', [ 'https://', !Ref CustomDomainName ]], + !Join [ '', [ 'https://', !GetAtt DefaultCloudfrontDistribution.DomainName ]] + ] + ], + '.

Username: {username}
Temporary password: {####}

' + ] ] AutoVerifiedAttributes: ['email'] UsernameAttributes: ['email'] + EmailVerificationSubject: 'Developer Portal - Verification Code' + EmailVerificationMessage: '

Developer Portal

Your verification code is {####}

' CognitoUserPoolClient: Type: AWS::Cognito::UserPoolClient