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.7.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 913f7373a2f15dc5f877cdda7ef94f20f06dfa40b88c2f742259c2e551817d32 |
|
MD5 | df37f75b427e6728ee37c48370f6a2d2 |
|
BLAKE2b-256 | 0c230b06173d5ed2a4531837e947d149099af53c1d5b7215d24d9da4f3c85621 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.7.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac01b9dbcaf23977f7dd602ec0bc99c7a671ea29762a895bcd95a341bbffd684 |
|
MD5 | 515b59503512e5285fc7762c8a0f2ff6 |
|
BLAKE2b-256 | a9a5debf2a9157be358efc40f60c3e24c586e6fa4cca77e0677cfa928bc4d509 |