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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4de2767200894d1c2d15f09b5dad96f5441afe836dcfe26a97bb66c6714c94aa |
|
MD5 | 58e5bb07caf7dd036769d1a6106b6ed1 |
|
BLAKE2b-256 | 00d4adf5c8a47c0dffd18a39106d8860aa80443ebf3ac3da8125aeb982fdba78 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.7.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22dda1f072e0e0abd54be3d207387ec31b4d6ec057212f7968570de02dbc522b |
|
MD5 | 19d84d388d3a8cc988cda1e99affb497 |
|
BLAKE2b-256 | 8fe48e3e3281764881f838dd77523e5808f4b86a63e4e3ec41a6a46e595a42bc |