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
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.8.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48a2efc5f90ff89a9a4b07a6ef26298b109e20e420858b2686104214a6d3f6f9 |
|
MD5 | 6b291b5d2b498b1a9b582e8cd812a6b1 |
|
BLAKE2b-256 | 4fe3d279be50b20eed3372aae4e5f4387560a82582dd3250f41b45632a173f88 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d0bdfe67fd7106f70cbe2d9b5b537b7ff2667fbbe2355821f88fa97ef7728f0 |
|
MD5 | c1f6bbfaad886d0ee9b9484c8ea067b8 |
|
BLAKE2b-256 | 761eb1d86ca51c94ab185201f22c9d9e8fcae16930fff25bddf611d740bae26f |