serverless-application-model
serverless-application-model copied to clipboard
[Custom Domains][M3] Make API property Domain accept a list of objects
Related Issues
#783
Description
Custom Domains Milestone 3 is to enable multiple domains to multiple Apis mapping. The task tracks adding multiple domains in SAM template.
Type: AWS::Serverless::Api
Properties:
Domain:
- DomainName: example.com
Certificate: !Ref MyApiExampleDomainCertificate
- DomainName: another.com
Certificate: !Ref MyApiAnotherDomainCertificate
EndpointConfiguration: REGIONAL # this is default, so same as not having this here
Resources - Create a 'AWS::ApiGateway::DomainName' and AWS::ApiGateway::BasePathMapping for each domain name:api mapping.
Any ETA on supporting this feature?
Any hope this will be available at some point?
I'd like to map to the same API two domains, one in a public hosted zone, and another one in a private hosted zone.
I can't use directly Route53 as it seems there's no way to retrieve the distribution alias from the CloudFormation template when using SAM