Skip to content

philcali/philcali-cdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CDK Collections

Total alerts Total alerts

Little helper constructs for common things.

Static Website

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