AWS CloudFront distribution for frontend web app (spa) optimized.
Project description
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-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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gammarers_aws_secure_frontend_web_app_cloudfront_distribution-2.1.17.tar.gz.
File metadata
- Download URL: gammarers_aws_secure_frontend_web_app_cloudfront_distribution-2.1.17.tar.gz
- Upload date:
- Size: 37.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15567603e0cfede979cbff08438bfb0693bec68829c337cbe3a7b7ec521eb86e
|
|
| MD5 |
1a9fecf36a768307e2a95afe6c718e56
|
|
| BLAKE2b-256 |
3bc4b32bd71a45ffb17a7f510f0dcb61af9a819230311ffbc01c65eb6094e737
|
File details
Details for the file gammarers_aws_secure_frontend_web_app_cloudfront_distribution-2.1.17-py3-none-any.whl.
File metadata
- Download URL: gammarers_aws_secure_frontend_web_app_cloudfront_distribution-2.1.17-py3-none-any.whl
- Upload date:
- Size: 36.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40bfc6823adb5eb6223811afb2381d30fd12ba1973e95999989504aa28c7d682
|
|
| MD5 |
301c2f75f34775996519a1e911d0b14b
|
|
| BLAKE2b-256 |
e5609848e480ad00946b02535656c2075f91310407cbbb29e484df2685d2e11f
|