JSPM

  • Created
  • Published
  • Downloads 23
  • Score
    100M100P100Q55381F
  • License MIT

Package Exports

  • @getjerry/domain
  • @getjerry/domain/serverless.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@getjerry/domain) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Domain

Easily provision custom domains for:

  • Static websites hosted on AWS CloudFront & AWS S3 via the Website Component.
  • APIs built via the Backend Component.

Inputs

domain:
  component: "@serverless/domain"
  inputs:
    privateZone: false
    domain: mywebsite.com
    subdomains:
      www: ${websiteComponentInstance}
      api: ${backendComponentInstance}
      admin: ${anotherWebsiteComponentInstance}

Set-Up

First, you must purchase your domain within Route53 manually. Then add it to the Component, as demonstrated above.

Using With The Website Component

When used with the Website Component, the domain component will...

  • Create an AWS ACM Certificate, if one does not already exists for the domain.
  • Create an AWS Cloudfront Distribution that uses the AWS ACM Certificate.
  • Create Records in AWS Route 53 to point your custom domain to your AWS Cloudfront Distribution.

Credits

This package was originally implemented by the serverless framework team. I decided to fork it and bring it into this monorepo because it wasn't being maintained anymore