This package has been deprecated

Author message:

Rename project to cdk-simplewebsite-deploy

cdk-cloudfront-deploy
TypeScript icon, indicating that this package has built-in type declarations

0.0.20 • Public • Published

License Build Release

cdk-cloudfront-deploy

This is an AWS CDK Construct to simplify deploying a single-page website use CloudFront distributions.

Installation and Usage

npm install --save cdk-cloudfront-deploy
import * as cdk from '@aws-cdk/core';
import { CreateBasicSite } from 'cdk-cloudfront-deploy';

export class PipelineStack extends cdk.Stack {
  constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) {
    super(scope, id, props);

    new CreateBasicSite(stack, 'test-website', {
      websiteFolder: './src/build',
      indexDoc: 'index.html',
      encryptBucket: true,
    });

  }
}
import * as cdk from '@aws-cdk/core';
import { CreateCloudfrontSite } from 'cdk-cloudfront-deploy';

export class PipelineStack extends cdk.Stack {
  constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) {
    super(scope, id, props);

    new CreateCloudfrontSite(stack, 'test-website', {
      websiteFolder: './src/dist',
      indexDoc: 'index.html',
      hostedZoneDomain: 'example.com',
      websiteDomain: 'www.example.com',
    });

  }
}

License

Distributed under the Apache-2.0 license.

Readme

Keywords

Package Sidebar

Install

npm i cdk-cloudfront-deploy

Weekly Downloads

2

Version

0.0.20

License

Apache-2.0

Unpacked Size

99.4 kB

Total Files

14

Last publish

Collaborators

  • thonbecker