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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 212709a4539b8640c91bfe6a8a6444cf5e6804d20900c50c75c8311f57cce778 |
|
MD5 | e3f2026a524aa04855efc1e03701e6e4 |
|
BLAKE2b-256 | c57e7827545affa0ce6e794741b1a7bfceb862689ad00022ab895982490b2891 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.7.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 878d7c2424700230183d16da8cc11bfc4e40b7e7d9269391a3ef237ab8c5a93b |
|
MD5 | 749d46a9663ddeb8ec777fd1806efab4 |
|
BLAKE2b-256 | 84dd86ff5086bf7c558078360d4bacb636257651cac1738d43ec1d1950ef7dca |