Jump to content

AWS API Gateway subdomain

Recommended Posts

I am trying to add a subdomain for an api. The api is built using api-gateway/lambdas and therefore lives in aws. The url provided for the api is of the form: <random-hash>.execute-api.<region>.amazonaws.com. When forwarding the subdomain to the AWS url, I receive a forbidden, I believe because the AWS domain doesn't match the squarespace certificate. I then tried using Route53 to manage the dns of the subdomain. They provide nameservers I can use for the dns lookup, but there is not place to add nameservers for the specific subdomain in squarespace.

Additionally, I created a cert for the subdomain in AWS, and then tried to add the cname validation record to the dns settings in squarespace, but the put request fails saying, 

Quote

Custom record not saved

We were unable to save this record. Try again later. If this problem continues, contact Customer Support.

 I was hoping for some direction on how to get this setup correctly while keeping the domain hosting within squarespace. I basically need, api.<domain>.com to be a subdomain pointing to <random-hash>.execute-api.<region>.amazonaws.com, from squarespace dns. I can move all dns over to AWS, but I was hoping to avoid that.

Edited by b410
Link to comment
  • 8 months later...
  • Replies 1
  • Views 2.2k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hey there! It seems like you're dealing with a DNS and certificate issue. Squarespace can be a bit tricky with subdomains. Have you tried creating a CNAME record pointing 'api.<domain>.com' to your AWS API Gateway URL in Route53? It might take some time for DNS changes to propagate. If it still doesn't work, reaching out to Squarespace support could be a good next step. Good luck!

Edited by Clownnewb
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.