@ublend-npm/serverless-compoonent-domain

0.0.8 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @ublend-npm/serverless-compoonent-domain

Weekly Downloads

37

Version

0.0.8

License

Apache

Unpacked Size

56.9 kB

Total Files

13

Last publish

Collaborators

  • himanshu_grover_aula
  • deepanshaula
  • abhishek-aula
  • rohanbhuri-aula
  • danish326474
  • mohan55
  • vijaysingh-aula
  • varun.gupta
  • sakshambhandari
  • saikat_barman_singularis
  • ujjwal.gupta.aula
  • arungupta
  • cristina.radulescu
  • ae4464
  • ajaysvwow
  • umashankarharbola
  • aulaaccounts
  • aulabot
  • guicostaarantes