Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Notification to user on account creation, via SES

  • path: notification/user
  • lambda name: swb-tools-user-notification-<stage>
  • requires: lodash layer

Sends an email through SES to the user who's account has been marked as activated through the SWB ui.

Notes:

Because this stack did not originate the dynamodb table, it can not add a stream to the table post-deployment. The original stack must be updated to include a stream, or one must be added manually (which could be overwritten on future deployments).

# yml file where table is created, like /main/solution/backend/config/infra/cloudformation.yml
Resources:
  # ...

  DbUsers:
    Type: AWS::DynamoDB::Table
    DependsOn: DbPasswords
    Properties:
      TableName: ${self:custom.settings.dbTableUsers}
      # ...

      # these 2 lines create a stream
      StreamSpecification:
        StreamViewType: NEW_AND_OLD_IMAGES

  # ...

Find the name of this stream, and add it to a config under userTableStream.

SES Resources

The only other things that are needed to send email are related to SES authentication and getting out of the sandbox.