0.0.2 • Published 4 years ago

@philcali-cdk/static-website v0.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 years ago

Static Website

Pulls in CDK contructs to simplify static website creation.

Example

import * as website from '@philcali-cdk/static-website';
import * as acm from '@aws-cdk/aws-certificatemanager';
import * as route53 from '@aws-cdk/aws-route53';

const staticWebsite = new website.StaticWebsite(stack, 'StaticWebsite', {
  domainName: 'adventure.philcali.me',
  certificate: acm.Certificate.fromArn('arn:aws:acm:mycert', stack),
  hostedZone: route53.HostedZone.fromHostedZoneAttributes(stack, 'PersonalHZ', {
    hostedZoneId: 'ZXXXXXXXXXXXX',
    zoneName: 'philcali.me'
  });
});