AWS CloudFront distribution for frontend web app (spa) optimized.
npm install @gammarers/aws-secure-frontend-web-app-cloudfront-distributionyarn add @gammarers/aws-secure-frontend-web-app-cloudfront-distributionpip install gammarers.aws-secure-frontend-web-app-cloudfront-distributiondotnet add package Gammarers.CDK.AWS.SecureFrontendWebAppCloudFrontDistributionimport { SecureFrontendWebAppCloudFrontDistribution } from '@gammarers/aws-secure-frontend-web-app-cloudfront-distribution';
declare const originBucket: s3.Bucket;
declare const accessLogBucket: s3.Bucket;
declare const certificate: acm.Certificate;
new SecureFrontendWebAppCloudFrontDistribution(stack, 'SecureFrontendWebAppCloudFrontDistribution', {
comment: 'frontend web app distribution.', // optional
accessLogBucket: accessLogBucket, // optional
certificate: certificate,
distributionDomainName: 'example.com',
originBucket: originBucket,
});This project is licensed under the Apache-2.0 License.