- 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.
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
.
The only other things that are needed to send email are related to SES authentication and getting out of the sandbox.