0.0.20 • Published 3 years ago
cdk-cloudfront-deploy v0.0.20
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
CreateBasicSite
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,
});
}
}
CreateCloudfrontSite
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.
0.0.20
3 years ago
0.0.19
3 years ago
0.0.18
3 years ago
0.0.17
3 years ago
0.0.15
3 years ago
0.0.16
3 years ago
0.0.14
3 years ago
0.0.13
3 years ago
0.0.12
3 years ago
0.0.10
3 years ago
0.0.11
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.5
3 years ago
0.0.6
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago