Skip to content

Commit

Permalink
Add some rudimentary copy for the email
Browse files Browse the repository at this point in the history
  • Loading branch information
amazon-meaisiah committed Mar 20, 2020
1 parent 18d557d commit 733b022
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions cloudformation/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1297,8 +1297,33 @@ Resources:
AllowAdminCreateUserOnly: !If [
InviteAccountRegistrationMode, 'true', 'false',
]
InviteMessageTemplate:
EmailSubject: 'Developer Portal - Invitation'
EmailMessage: !Join [ '', [
'<h2>Developer Portal</h2><p>You have been invited to access the developer portal at <a href="',
!If [ 'DevelopmentMode',
!Join [ '', [ 'https://', !GetAtt DevPortalSiteS3Bucket.RegionalDomainName, '/index.html' ]],
!If [
'UseCustomDomainName',
!Join [ '', [ 'https://', !Ref CustomDomainName ]],
!Join [ '', [ 'https://', !GetAtt DefaultCloudfrontDistribution.DomainName ]]
]
],
'">',
!If [ 'DevelopmentMode',
!Join [ '', [ 'https://', !GetAtt DevPortalSiteS3Bucket.RegionalDomainName, '/index.html' ]],
!If [
'UseCustomDomainName',
!Join [ '', [ 'https://', !Ref CustomDomainName ]],
!Join [ '', [ 'https://', !GetAtt DefaultCloudfrontDistribution.DomainName ]]
]
],
'</a>.</p><p><b>Username:</b> {username}<br><b>Temporary password:</b> {####}</p>'
] ]
AutoVerifiedAttributes: ['email']
UsernameAttributes: ['email']
EmailVerificationSubject: 'Developer Portal - Verification Code'
EmailVerificationMessage: '<h2>Developer Portal</h2><p>Your verification code is <b>{####}</b></p>'

CognitoUserPoolClient:
Type: AWS::Cognito::UserPoolClient
Expand Down

0 comments on commit 733b022

Please sign in to comment.