Jack Fraser
04/29/2021, 5:28 PMcustomDomain: {
domainName: "*.<http://apis.domain.com|apis.domain.com>",
would create
ci.apis.domain.com or branch_name.apis.domain.com etcFrank
domain: `${process.env.BRANCH_NAME}.<http://apis.domain.com|apis.domain.com>`
Jack Fraser
04/29/2021, 6:33 PMcustomDomain: {
domainName: ${environment.id}.<http://api.domain.com|api.domain.com>
,
hostedZone: "domain.com",
path: "v2",
certificate: Certificate.fromCertificateArn(this, "SstDentrCert", "arnawsacmus east 1[account_id]:certificate/[guid]"),
},Frank
Jack Fraser
04/29/2021, 9:50 PMInvalid domain name identifier specified (Service: AmazonApiGatewayV2; Status Code: 404; Error Code: NotFoundException;
if customDomain.path="v2"
or
An ApiMapping key may contain only letters, numbers anif d one of
if customDomain.path="/v2"
Any pointers welcome!Frank
certificate
?Frank
customDomain: {
domainName: `${environment.id}.<http://api.domain.com|api.domain.com>`,
hostedZone: "<http://domain.com|domain.com>",
path: "v2",
},
Jack Fraser
04/30/2021, 8:32 AMcustomDomain.domainName
has to be lowercase
• customDomain.path
should not contain /
("/v2" will error, "v2" will work)
• customDomain.certificate
when using Certificate.fromCertificateArn
the certArn
of the certificate needs to be the same AWS region as the deployment targetFrank
Frank
domainName
lowercase check in the new release v0.17.0