aws-route53aws-websocket-api

Route53 cname record for AWS WebSocket


I have a websocket url wss://blahblah.execute-api.us-west-2.amazonaws.com/qa/ in my qa environment. I added a route 53 CNAME record entry for my domain qa-my-domain.com mapped to blahblah.execute-api.us-west-2.amazonaws.com.

But I am getting a 403 when I tried to connect using my CNAME. It connects fine when I use the websocket url. Any ideas or suggestions?


Solution

  • I was using CDK to deploy.

    Unfortunately, when something changes, it was not forcing a deploy to Stage. So I had to manually deploy it.

    Below are the steps:

    1. Login to your Aws Console

    2. Go to Api Gateway

    3. Search for your api and click on it

    4. Go to Stages (one of the links on the left side of the page)

    5. Check the deployment history tab (right side of the page).

    6. If you don't have the latest code, manually force a deploy.

    That's how I fixed it.