Now that our APIs are complete, let’s deploy them.

Run the following in your working directory.

$ serverless deploy

Near the bottom of the output for this command, you will find the Service Information.

Service Information
service: notes-app-api
stage: prod
region: us-east-1
api keys:
  POST -
  GET -{id}
  GET -
  PUT -{id}
  DELETE -{id}

This has a list of the API endpoints that were created. Make a note of these endpoints as we are going to use them later while creating our frontend. Also make a note of the region and the id in these endpoints, we are going to use them in the coming chapters. In our case, us-east-1 is our API Gateway Region and ly55wbovq4 is our API Gateway ID.

Now before we test our APIs we have one final thing to set up. We need to ensure that our users can securely access the AWS resources we have created so far. Let’s look at setting up a Cognito Identity Pool.