b410 Posted January 30, 2023 Share Posted January 30, 2023 (edited) 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 January 30, 2023 by b410 Link to comment
Clownnewb Posted October 16, 2023 Share Posted October 16, 2023 (edited) 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 October 16, 2023 by Clownnewb Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment