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.6.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4b77a3f9a018f1dc72c4a4f2b80ffe796d8f451280e9291fd62c708eb7e61b6 |
|
MD5 | 39561627707effc08b83c047a8f8712b |
|
BLAKE2b-256 | af87f09e9fe7bdd6e5b1d81f21bd74d46f3e1ebc1775e27d9eb0f6d3476fae55 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.6.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13a705319dc405618ddbf6321ad501745d3c9ed5d0aa71c542664f32178cd05a |
|
MD5 | c8581280c157e66eaab5761c7d574c36 |
|
BLAKE2b-256 | f4fce1d61bac3863a5c3ac66245caa0b477c9e1c120f62246521870672ed0ab8 |