Hi, has anybody set up a customDomain using Digita...
# help
m
Hi, has anybody set up a customDomain using Digital Ocean?
Copy code
customDomain: {
        domainName: '<http://customDomain.com|customDomain.com>',
        isExternalDomain: true,
        certificate: Certificate.fromCertificateArn(this, 'Digital Ocean Certificate', certificate-arn),
      }
I have also tried to configure custom domain in API Gateway and hosted zone in route 53, but nothing seems to work
f
Hey @Michael James Munar, where does
certificate-arn
come from? Did u manually create the certificate in Amazon Certificate Manager?
m
Yup I manually created it there.
I've followed the docs, I tried using api gateway instead of certificate in the
customDomain>
I've also followed this https://aws.plainenglish.io/custom-domain-for-aws-api-gateway-86d14e0d6024 but I can't find anything specific if you wanna use Digital Ocean's DNS as the domain for your SST app
f
I see. So you are able to deploy fine, but the domain doesn’t work?
m
Yep, The deployment is fine. I can hit the endpoints. But I tried to disable the default endpoint on build, seeing if maybe that was an issue, but the domain still doesn't work. Is it because it would take more than a day for it to fully propate? or it shouldn't be like that
f
Did u change the DNS setting on the Digital Ocean side?
m
I tried adding A and AAAA but I couldn't make it work since the API gateway doesn't have a static IP. I've only tried CNAME.
f
Can you DM me the name of ur domain? Let me check a couple of things.
m
Hey Frank, thanks for taking time on helping me with the issue. I've already DM'ed you the domain name.
Issue Resolved : DNS was getting confused as I setup both in Amazon and Digital Ocean
l
@Michael James Munar where did you end up finally configuring the DNS @? Digital Ocean or AWS?
m
Hey Łukasz, I ended up configuring it in Digital Ocean since that's where my we setup our dns for our other projects that's not SST