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 install @gammarer/aws-secure-frontend-web-app-cloudfront-distribution
# or
yarn add @gammarer/aws-secure-frontend-web-app-cloudfront-distribution
Python
pip install gammarer.aws-secure-frontend-web-app-cloudfront-distribution
Java
Add the following to pom.xml:
<dependency>
<groupId>com.gammarer</groupId>
<artifactId>aws-secure-frontend-web-app-cloudfront-distribution</artifactId>
</dependency>
Example
import { SecureFrontendWebAppCloudFrontDistribution } from '@gammarer/aws-secure-frontend-web-app-cloudfront-distribution';
new SecureFrontendWebAppCloudFrontDistribution(stack, 'SecureFrontendWebAppCloudFrontDistribution', {
comment: 'frontend web app distribution.', // optional
accessLogBucket: new s3.Bucket(stack, 'LogBucket'), // optional
certificate: new acm.Certificate(stack, 'Certificate', {
domainName: 'example.com',
}),
distributionDomainName: 'example.com',
originAccessIdentity: new cloudfront.OriginAccessIdentity(stack, 'OriginAccessIdentity'),
originBucket: new s3.Bucket(stack, 'OriginBucket'),
});
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
Close
Hashes for gammarer.aws-secure-frontend-web-app-cloudfront-distribution-0.8.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 929ff29c726deb4dd1506fe1185f67499acbf117970f4a2ab60f4b827b8c7f30 |
|
MD5 | 90fcd51c2da51e2a3df4270fc6970965 |
|
BLAKE2b-256 | c2f5723537d7f57327d569c576c35f9d248c75b8946eb9444ef931b8410a7b8d |
Close
Hashes for gammarer.aws_secure_frontend_web_app_cloudfront_distribution-0.8.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03f0846bb195ee83edde48372619a822cf8cc734a386b57e8c544237b68c99ef |
|
MD5 | 90b26118e51619635fe022c4f3f5c41f |
|
BLAKE2b-256 | 24a4bc7dd73e010820b79ccf1d43e8920e56aa953f74f2f276d6063bba40a883 |