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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 568264b0872198bf27b81b9c3794400f639fd1ea9d8e88e3c60458bc5b57e114 |
|
MD5 | a8066dd2b1e223fc0814670df39f993a |
|
BLAKE2b-256 | ed74e70c23f71bd9256a82abc53aebb661c2c03b99ed0876f3bdbbd325d30933 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.7.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2170c547b855b8c8ae07acdbdeb4deb94d5d6024175f70b4e2d261a59a88f3e6 |
|
MD5 | fa40ea25b143e5d1eb7163ec88ebec81 |
|
BLAKE2b-256 | 2dd0adbe5cf34b262553102ede17e1dbaea8d9f4831ac4794af05f5f33608c20 |