Skip to content
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

Add some rudimentary copy for the email #369

Merged
2 commits merged into from
Mar 31, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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