Example of backend Serverless framework for an abstract message board. Api Gateway endpoints are authenticated with caller credentials from an AWS Cognito Federated Identity pool. The message board uses AWS ApiGateway with Lambda and DynamoDB to store the messages. Api Gateway endpoints are authenticated with AWS_IAM ("Invoke with caller credentials" option) given by Cognito.
While the serverless.yml defines the Api Gateway endpoints, lambda and dynamodb. You need (as instructed below) to create the Cognito Identity pool manually and set it's IAM role (explained).
Important Note: Running the example has a financial cost, please be aware and see the AWS pricing system for each service. Example not for production use!
Install Serverless Framework - See Instructions
(Also see Using Federated Identities)
Facebook Application:
Cognito:
IAM Role:
Once the service is set, an endpoint URL is created. Copy the path to the created API and paste it in the client as instructed in the serverless-auth-msg-board-unity3d-client README.md file.