Hi there ,
I’m reading about custom domain and try to use it , but getting this error :
Serverless: [AWS apigatewayv2 403 3.044s 0 retries] getDomainName({ DomainName: ‘uat-api.mydomain.com’ })
Error --------------------------------------------------
Error: Unable to fetch information about uat-api.mydomain.com
at APIGatewayWrapper.<anonymous> (/Users/../node_modules/serverless-domain-manager/dist/src/aws/api-gateway-wrapper.js:112:27)
at Generator.throw (<anonymous>)
at rejected (/../node_modules/serverless-domain-manager/dist/src/aws/api-gateway-wrapper.js:6:65)
at process._tickCallback (internal/process/next_tick.js:68:7)
here is my custom configuration:
custom:
customDomain:
domainName: uat-api.mydomain.com
basePath: api
certificateName: som-cert-name.com
certificateArn: arnid
createRoute53Record: true
endpointType: ‘regional’
securityPolicy: tls_1_2
apiType: rest
autoDomain: false
hostedZoneId: Z1I1XQT4F25333
What i did is :
- create custom domain in aws APi Gateway [uat-api.mydomain.com]
2.create a dns record for uat-api.mydomain.com to api-gateway endpoint
3.i also grant full access of Route53 & api-gateway to responsible role.
Could any one help if i miss something?
Thanks