Setup Pinpoint

First of all, we need to add Amazon Pinpoint to our project.

Initializing Amazon Pinpoint via Amplify

On the command line, in the photoalbums directory:

  1. Run amplify add analytics

  2. Press Enter

  3. Define a resource name like photoalbums

  4. Let unauthenticated users send analytics events as well (as we let unauthenticated users send analytics)

amplify add analytics

Wait for the provisioning to complete. This will take a few minutes.