Custom Domain
Deploying your app in us-east-1 with a custom domain is easy! Set the CustomDomain field (the domain value) on a stage, plus the HostedZoneId from your AWS Route 53 hosted zone. With those two values set under a stage in your gothic.config.go, Gothic automatically creates and DNS-validates an ACM certificate for you in us-east-1 — no CertificateArn needed when deploying in us-east-1. We recommend storing your hosted zone id in Parameter Store via gothic.SSMParam(...) as shown below, since it is sensitive information:
Stages: map[string]gothic.Stage{
"dev": {
CustomDomain: gothic.Env("dev.mycustomdomain.com"),
HostedZoneId: gothic.SSMParam("/gothic-cli/dev/hostedZoneId"),
},
},Did you like this session for deploy your app with a custom domain? Check out how to deploy your app with a custom domain in a custom region!
