C. Deploy the API

Now that we have created all of the routes for the WebSocket API, we can deploy it. Deploying our API makes our changes available to the Alien Attack Application.

Deploy the API

  1. Once all the routes are created, select the dropdown menu Actions.
  2. Click Deploy API.
    1. For Deployment Stage select, [New Stage].
    2. For Stage Name enter, Production.
    3. Select Deploy.
  3. You’ll see a page appear that has the WebSocket URL and Connection URL.
  4. Copy the WebSocket URL.