This is an AWS CDK Construct to make deploying a Frontend Web App (SPA) deploy to S3 behind CloudFront.
Project description
AWS Frontend Web App Deploy Stack
This is an AWS CDK Construct to make deploying a Frontend Web App (SPA) deploy to S3 behind CloudFront.
Install
TypeScript
npm install @gammarer/aws-frontend-web-app-deploy-stack
# or
yarn add @gammarer/aws-frontend-web-app-deploy-stack
Python
pip install gammarer.aws-frontend-web-app-deploy-stack
C# / .NET
dotnet add package Gammarer.CDK.AWS.FrontendWebAppDeployStack
Java
Add the following to pom.xml:
<dependency>
<groupId>com.gammarer</groupId>
<artifactId>aws-frontend-web-app-deploy-stack</artifactId>
</dependency>
Example
import { FrontendWebAppDeployStack } from '@gammarer/aws-frontend-web-app-deploy-stack';
new FrontendWebAppDeployStack(app, 'FrontendWebAppDeployStack', {
env: { account: '012345678901', region: 'us-east-1' },
domainName: 'example.com',
hostedZoneId: 'Z0000000000000000000Q',
originBucketName: 'frontend-web-app-example-origin-bucket', // new create in this stack
deploySourceAssetPath: 'website/',
logBucketArn: 'arn:aws:s3:::frontend-web-app-example-access-log-bucket', // already created
});
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
Close
Hashes for gammarer.aws-frontend-web-app-deploy-stack-0.9.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2d5469e46ca075c15fa1a4df7ff6e5654301ea4b39ee055b1590e882e4f80a1 |
|
MD5 | de714d5b6ac868a11daa705a5da000e9 |
|
BLAKE2b-256 | 56daccded9193dd97d52a784a899c5f663166886b1a2f9bbc246721035e717a9 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.9.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f4a209392a9aa7204f230bec3ff9888f0f96f83bc6bad207856ddbd199937c1 |
|
MD5 | d614377f1e9f8dcc93bb280791f55951 |
|
BLAKE2b-256 | 84f1c836db9dcdb1c4331f1dd682c6ee3f305a68b5b5ea6a3850316fdf945d77 |