Test Locally
Last updated on
Once you have completed filling in the AWS SAM Template, you are ready to test the serverless application. To test the application locally, you will need to change the REDIS_HOST to host.docker.internal as local testing is required by Docker. If you fail to do this, you will encounter an AWS SAM CLI error.
Run the build locally inside the Docker container using the following function:
sam build --use-container
Run the API locally using the following function:
sam local start-api
Once your application works locally, you can test the Matchmaking with the test client or deploy your app to AWS. For more information regarding local testing, see Tutorial: Deploying a Hello World application in AWS's Documentation.