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


Release history Release notifications | RSS feed

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

If you're not sure about the file name format, learn more about wheel file names.

File details

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

File metadata

File hashes

Hashes for gammarers_aws_secure_frontend_web_app_cloudfront_distribution-2.1.17.tar.gz
Algorithm Hash digest
SHA256 15567603e0cfede979cbff08438bfb0693bec68829c337cbe3a7b7ec521eb86e
MD5 1a9fecf36a768307e2a95afe6c718e56
BLAKE2b-256 3bc4b32bd71a45ffb17a7f510f0dcb61af9a819230311ffbc01c65eb6094e737

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gammarers_aws_secure_frontend_web_app_cloudfront_distribution-2.1.17-py3-none-any.whl
Algorithm Hash digest
SHA256 40bfc6823adb5eb6223811afb2381d30fd12ba1973e95999989504aa28c7d682
MD5 301c2f75f34775996519a1e911d0b14b
BLAKE2b-256 e5609848e480ad00946b02535656c2075f91310407cbbb29e484df2685d2e11f

See more details on using hashes here.

Supported by

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