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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4733c58fd984416d948c9523e1aed91e05d90c9346b2bb1abebd47c366cf039d |
|
MD5 | 6d18a06f8af289b51a57ed1d58ca1bbe |
|
BLAKE2b-256 | b4bf47bbe110fb05c5a567c9660dc50eebbe433d0d2e3388ad43f5640147133c |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.8.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9918c75071e131666a207fb940baeadd054388d8c00936f956c4ff0fc1719fa8 |
|
MD5 | 2aec7d67f0ab3189410d76e1d3c5880d |
|
BLAKE2b-256 | 911875cff47045c1fde1643c190ff563c866eff78460da2dae70922b25daa433 |