Skip to content
Simply manage your AWS domains with Serverless Components
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.eslintignore first working version Jul 29, 2019
.eslintrc.js first working version Jul 29, 2019
.gitignore first working version Jul 29, 2019
.npmignore first working version Jul 29, 2019
.npmrc first working version Jul 29, 2019
.prettierignore
CODE_OF_CONDUCT.md first working version Jul 29, 2019
CONTRIBUTING.md first working version Jul 29, 2019
COPYRIGHT first working version Jul 29, 2019
LICENSE
README.md input: privateZone option Aug 9, 2019
package.json release 6.1.0 Oct 7, 2019
prettier.config.js
serverless.js added support for AppSync Oct 2, 2019
utils.js Merge pull request #9 from Gabrola/fix-www-cloudfront Oct 7, 2019

README.md

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.
You can’t perform that action at this time.