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-1.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4453b941e6eff8779f199286ac1b7c03a12dea871595f6a0ca1a65dd8adacd92 |
|
MD5 | 03a78350800e3e9dc94d9422617264ba |
|
BLAKE2b-256 | 31dfb9a3ba8d73464f28b757c27db4879f085cda6b2a02be51d2c5310589f97d |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d1ce674953368362309f614b7a749267b69b73602a3ebe30f2a513c7d62fd8e |
|
MD5 | 38262a1e382d043a807dc5f9d7f3284e |
|
BLAKE2b-256 | 195fd9766afb6387195d04314f9d9063dbee977a6b5c1e481b3d9c05880bed45 |