mirror of
https://github.com/GSA/notifications-api.git
synced 2026-05-08 01:58:01 -04:00
1.4 KiB
1.4 KiB
Setting up the infrastructure
Steps to prepare SES
- Go to SES console for $AWS_REGION and create new origin and destination emails. AWS will send a verification via email which you'll need to complete.
- Find and replace instances in the repo of "testsender", "testreceiver" and "dispostable.com", with your origin and destination email addresses, which you verified in step 1 above.
TODO: create env vars for these origin and destination email addresses for the root service, and create new migrations to update postgres seed fixtures
Steps to prepare SNS
- Go to Pinpoints console for $AWS_PINPOINT_REGION and choose "create new project", then "configure for sms"
- Tick the box at the top to enable SMS, choose "transactional" as the default type and save
- In the lefthand sidebar, go the "SMS and Voice" (bottom) and choose "Phone Numbers"
- Under "Number Settings" choose "Request Phone Number"
- Choose Toll-free number, tick SMS, untick Voice, choose "transactional", hit next and then "request"
- Go to SNS console for $AWS_PINPOINT_REGION, look at lefthand sidebar under "Mobile" and go to "Text Messaging (SMS)"
- Scroll down to "Sandbox destination phone numbers" and tap "Add phone number" then follow the steps to verify (you'll need to be able to retrieve a code sent to each number)
At this point, you should be able to complete both the email and phone verification steps of the Notify user sign up process! 🎉