UNPKG

slic-starter

Version:

A complete serverless starter application

49 lines (42 loc) 1.25 kB
service: slic-starter-certs provider: name: aws runtime: ${self:custom.runtime} stage: ${self:custom.stage} region: us-east-1 custom: ${file(./custom.yml)} resources: Outputs: publicHostedZone: Value: !Ref publicHostedZone Export: Name: ${self:provider.stage}-public-hosted-zone siteCert: Value: !Ref siteCert Export: Name: ${self:provider.stage}-site-cert apiCert: Value: !Ref apiCert Export: Name: ${self:provider.stage}-api-cert Resources: publicHostedZone: Type: AWS::Route53::HostedZone Properties: Name: ${self:custom.nsDomain} siteCert: Type: AWS::CertificateManager::Certificate Properties: DomainName: ${self:custom.siteDomainName} DomainValidationOptions: - DomainName: ${self:custom.siteDomainName} ValidationDomain: ${self:custom.nsDomain} ValidationMethod: EMAIL apiCert: Type: AWS::CertificateManager::Certificate Properties: DomainName: ${self:custom.apiDomainName} DomainValidationOptions: - DomainName: ${self:custom.apiDomainName} ValidationDomain: ${self:custom.nsDomain} ValidationMethod: EMAIL