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.
Metadata
Release files for gammarers.aws-secure-frontend-web-app-cloudfront-distribution 2.1.17
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gammarers_aws_secure_frontend_web_app_cloudfront_distribution-2.1.17.tar.gz | 37.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gammarers_aws_secure_frontend_web_app_cloudfront_distribution-2.1.17-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 73.5 kB
Release files / gammarers_aws_secure_frontend_web_app_cloudfront_distribution-2.1.17.tar.gz
| Download URL | gammarers_aws_secure_frontend_web_app_cloudfront_distribution-2.1.17.tar.gz |
|---|---|
| Size | 37.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15567603e0cfede979cbff08438bfb0693bec68829c337cbe3a7b7ec521eb86e
|
|
BLAKE2b-256 checksum How to use checksums |
3bc4b32bd71a45ffb17a7f510f0dcb61af9a819230311ffbc01c65eb6094e737
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.14.2
|
Release files / gammarers_aws_secure_frontend_web_app_cloudfront_distribution-2.1.17-py3-none-any.whl
| Download URL | gammarers_aws_secure_frontend_web_app_cloudfront_distribution-2.1.17-py3-none-any.whl |
|---|---|
| Size | 36.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
40bfc6823adb5eb6223811afb2381d30fd12ba1973e95999989504aa28c7d682
|
|
BLAKE2b-256 checksum How to use checksums |
e5609848e480ad00946b02535656c2075f91310407cbbb29e484df2685d2e11f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.14.2
|