serverless-application-model icon indicating copy to clipboard operation
serverless-application-model copied to clipboard

[Custom Domains][M3] Make API property Domain accept a list of objects

Open praneetap opened this issue 6 years ago • 2 comments

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.

praneetap avatar Sep 07 '19 19:09 praneetap

Any ETA on supporting this feature?

kimyu-ng avatar Jul 21 '20 14:07 kimyu-ng

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

babaMar avatar Mar 09 '22 10:03 babaMar