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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9d125e34e0dd753c833793da0847b7d48195991e98985b7a82cfc566de679d5 |
|
MD5 | 5521dbb0296376e187b61339b6d43521 |
|
BLAKE2b-256 | f0c27c2bf66d1501b944de237e24f6d782864a0827761020789ca147496ee881 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e2d7b99daf29da96e7b8c6897f118f35517bd6bcbae95a0dd50d2bd6aa21180 |
|
MD5 | 9ec05078708275d5ac6ed703cf98285e |
|
BLAKE2b-256 | 57682fd7b5917739ae0eb7b282e9020a80a7af58d7940afe42c72b001cb7a166 |