Created
August 7, 2019 15:35
-
-
Save eoinsha/2aa26d959dffc98f1c85986a14ae8747 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiCustomDomain: | |
Type: AWS::ApiGateway::DomainName | |
Properties: | |
CertificateArn: ${self:custom.apiConfig.apiCert} | |
DomainName: api.sliclists.com | |
apiCustomDomainPathMappings: | |
Type: AWS::ApiGateway::BasePathMapping | |
Properties: | |
BasePath: '' | |
RestApiId: | |
Ref: ApiGatewayRestApi | |
DomainName: | |
Ref: apiCustomDomain | |
Stage: prod | |
apiDomainDns: | |
Type: AWS::Route53::RecordSetGroup | |
Properties: | |
HostedZoneId: ${self:custom.apiConfig.publicHostedZone} | |
RecordSets: | |
- Name: ${self:resources.Resources.apiCustomDomain.Properties.DomainName} | |
Type: A | |
AliasTarget: | |
DNSName: { Fn::GetAtt: [apiCustomDomain, DistributionDomainName] } | |
HostedZoneId: ${self:custom.cloudFrontHostedZoneId} | |
- Name: ${self:resources.Resources.apiCustomDomain.Properties.DomainName} | |
Type: AAAA | |
AliasTarget: | |
DNSName: { Fn::GetAtt: [apiCustomDomain, DistributionDomainName] } | |
HostedZoneId: ${self:custom.cloudFrontHostedZoneId} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment