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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcfb5e43aedda8ec0bfc1d9d7f94bdd529dc05ecd4f2591ae25ef50bc19bcc29 |
|
MD5 | f27f645bb5d98bd17544f8f8d0f93c15 |
|
BLAKE2b-256 | 57a0fb6e8442f695531263ce84225ac0a39018c34722e72d584c90dadb58420a |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.7.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47286592c1f7e1b2b3e54a1f1e9f71f6dcec9a7bc1fe65f9679d1a8ec5b2968c |
|
MD5 | cb773be637e3c441e403d405cc3ef738 |
|
BLAKE2b-256 | 80edcd754ea9b103c3e9e45f14394dbf82d73365285204bb2e6772460f8e1773 |