@gammarers/aws-secure-frontend-web-app-cloudfront-distribution
v2.1.8
Published
AWS CloudFront distribution for frontend web app (spa) optimized.
Maintainers
Readme
AWS Secure Frontend Web App CloudFront Distribution (for AWS CDK v2)
AWS CloudFront distribution for frontend web app (spa) optimized.
Install
TypeScript
npm
npm install @gammarers/aws-secure-frontend-web-app-cloudfront-distributionyarn
yarn add @gammarers/aws-secure-frontend-web-app-cloudfront-distributionPython
pip install gammarers.aws-secure-frontend-web-app-cloudfront-distributionC# / .NET
dotnet add package Gammarers.CDK.AWS.SecureFrontendWebAppCloudFrontDistributionExample
for Origin Access Control
import { 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,
});License
This project is licensed under the Apache-2.0 License.
