I am having trouble getting my custom domain name to work with api gateway using AWS SAM to deploy to cloud formation and create the resources needed. This is the relevant part of my template
PrivateApi:
Type: AWS::Serverless::Api
Properties:
StageName: !Sub "${Env}"
Cors: "'*'"
EndpointConfiguration:
Type: REGIONAL
Domain:
DomainName: api.vrsb.tibblist.com
CertificateArn: (censored)
EndpointConfiguration: REGIONAL
Route53:
HostedZoneId: Z02959893T52LBTIBENSX
Auth:
DefaultAuthorizer: MyCognitoAuthorizer
Authorizers:
MyCognitoAuthorizer:
UserPoolArn: !GetAtt UserPool.Arn
This creates a domain name configuration that points to d-62jom4rgdd.execute-api.us-east-2.amazonaws.com and it does set a mapping on the domain name to my backend api dev stage but doesn't work. https://i.imgur.com/61lSFgQ.png Route 53 has records created pointing to d-62jom4rgdd.execute-api.us-east-2.amazonaws.com as well but the actual execute api url is https://i.imgur.com/xiueiqY.png.