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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 757781c23e7b13ba6f48890a589af679e51316fb0cbd8f22f4e464ab121cae4f |
|
MD5 | 889bcf59c4832a38401c500a98324631 |
|
BLAKE2b-256 | bebcc57de14b49790b82f3ec01d967ccfe7bdf4d67ababc2811061788316a05c |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.6.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e493005f16ff5b0f106be0f040c36f2ac343588235323bf5313ba3757b29e400 |
|
MD5 | b248bcbc82e89494f95967db3dedf571 |
|
BLAKE2b-256 | 9cfcbfc44a2877de2ecaa1dda1be014b5ed8cf50d014a46696426129ec13e73f |