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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bd8794d4d1b1ee2221560c629a106a88fa1a5e56aaf40d596f9679c538d96a5 |
|
MD5 | 384932c1b9292a0e53a54098c51c4184 |
|
BLAKE2b-256 | 8d1eccedf6c7823dc92df465d4a1dd39979cf7b948b17cebb75d209c8dbedde2 |
Close
Hashes for gammarer.aws_secure_frontend_web_app_cloudfront_distribution-0.8.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6968c2009db4ae0325bc4275e9e0ce68c9c27c2a38d8f004c08f47164a9ec14 |
|
MD5 | a52c363c42edda3026b8dc8a2ad903e7 |
|
BLAKE2b-256 | 9440596e118eaadf45e98e650e51d5d59b6f073cac4b7b4271f3ede3b3614849 |