Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. apiCustomDomain:
  2. Type: AWS::ApiGateway::DomainName
  3. Properties:
  4. CertificateArn: ${self:custom.apiConfig.apiCert}
  5. DomainName: api.sliclists.com
  6.  
  7. apiCustomDomainPathMappings:
  8. Type: AWS::ApiGateway::BasePathMapping
  9. Properties:
  10. BasePath: ''
  11. RestApiId:
  12. Ref: ApiGatewayRestApi
  13. DomainName:
  14. Ref: apiCustomDomain
  15. Stage: prod
  16.  
  17. apiDomainDns:
  18. Type: AWS::Route53::RecordSetGroup
  19. Properties:
  20. HostedZoneId: ${self:custom.apiConfig.publicHostedZone}
  21. RecordSets:
  22. - Name: ${self:resources.Resources.apiCustomDomain.Properties.DomainName}
  23. Type: A
  24. AliasTarget:
  25. DNSName: { Fn::GetAtt: [apiCustomDomain, DistributionDomainName] }
  26. HostedZoneId: ${self:custom.cloudFrontHostedZoneId}
  27. - Name: ${self:resources.Resources.apiCustomDomain.Properties.DomainName}
  28. Type: AAAA
  29. AliasTarget:
  30. DNSName: { Fn::GetAtt: [apiCustomDomain, DistributionDomainName] }
  31. HostedZoneId: ${self:custom.cloudFrontHostedZoneId}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement