Jan Plaček
03/14/2022, 9:55 AMcustomDomain
shouldn't
hostedZone
be set by default to the last 2 parts of the domain
?
Unless I set it explicitely to <http://foo.com|foo.com>
it throws:
[Error at /dev-talsec-talsec/Web] Found zones: [] for dns:<http://portal.dev.foo.com|portal.dev.foo.com>, privateZone:undefined, vpcId:undefined, but wanted exactly 1 zone
Found errors
It seems you are configuring custom domains for you URL. And SST is not able to find the hosted zone "<http://portal.dev.foo.com|portal.dev.foo.com>" in your AWS Route 53 account. Please double check and make sure the zone exists, or pass in a different zone.
thdxr
03/14/2022, 11:05 AMJan Plaček
03/14/2022, 11:07 AMJan Plaček
03/14/2022, 11:07 AMSo for example, if your custom domain is set to, SST will look for a hosted zone called<http://dev.example.com|dev.example.com>
. If you have it set under a different hosted zone, you’ll need to set that explicitly.<http://example.com|example.com>
Jan Plaček
03/14/2022, 11:08 AM<http://exmaple.com|exmaple.com>
I don't have to set it explicitely...Jan Plaček
03/14/2022, 11:12 AMcustomDomain: "<http://dev.api.example.com|dev.api.example.com>"
is equivalent to
customDomain: {
domainName: "<http://dev.api.example.com|dev.api.example.com>",
hostedZone: "<http://example.com|example.com>",
},
thdxr
03/14/2022, 1:05 PMthdxr
03/14/2022, 1:07 PMcustomDomain: <http://dev.api.example.com|dev.api.example.com>
-> <http://api.example.com|api.example.com>
Jan Plaček
03/14/2022, 2:13 PMJan Plaček
03/14/2022, 2:15 PMNote that, normally SST will look for a hosted zone by stripping out the first part of thedomainName
Jan Plaček
03/14/2022, 2:19 PM<http://example.dev|example.dev>
then it falls back to exact match and then it throws...Jan Plaček
03/14/2022, 2:32 PM