@philcali-cdk/static-website
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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'
  });
});

Readme

Keywords

Package Sidebar

Install

npm i @philcali-cdk/static-website

Weekly Downloads

4

Version

0.0.2

License

Apache-2.0

Unpacked Size

46.6 kB

Total Files

5

Last publish

Collaborators

  • philcali