Skip to main content

AWS CloudFront distribution for frontend web app (spa) optimized.

Project description

AWS Secure Frontend Web App CloudFront Distribution (for AWS CDK v2)

GitHub npm (scoped) PyPI Nuget GitHub Workflow Status (branch) GitHub release (latest SemVer)

View on Construct Hub

AWS CloudFront distribution for frontend web app (spa) optimized.

Install

TypeScript

npm

npm install @gammarers/aws-secure-frontend-web-app-cloudfront-distribution

yarn

yarn add @gammarers/aws-secure-frontend-web-app-cloudfront-distribution

Python

pip install gammarers.aws-secure-frontend-web-app-cloudfront-distribution

C# / .NET

dotnet add package Gammarers.CDK.AWS.SecureFrontendWebAppCloudFrontDistribution

Example

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file gammarers_aws_secure_frontend_web_app_cloudfront_distribution-2.0.13.tar.gz.

File metadata

File hashes

Hashes for gammarers_aws_secure_frontend_web_app_cloudfront_distribution-2.0.13.tar.gz
Algorithm Hash digest
SHA256 af5b7bddf4c6114a495c47db45f16ef3ce2b33ff0913555ec9670dc5aa4d68ea
MD5 6f1c9d9c1d7dc1be25a722a2912b420a
BLAKE2b-256 9a7bfd2a0efcd7cfa52d648aa1906b3fdb0594fc9d9b0ad267180a996bfa552e

See more details on using hashes here.

File details

Details for the file gammarers_aws_secure_frontend_web_app_cloudfront_distribution-2.0.13-py3-none-any.whl.

File metadata

File hashes

Hashes for gammarers_aws_secure_frontend_web_app_cloudfront_distribution-2.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 52e86f792af1d8f6c0228d0439fcb4e7bbf7502ac8a5be0e780ae14984c0c7f2
MD5 e6c884bdef038e780b29bc1327bcdfe9
BLAKE2b-256 63b639112a6303cc2747e93a7f86ad9169dd74f048c7893ee8f433648e5e7b68

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page