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
Example
TypeScript
npm install @gammarer/aws-frontend-web-app-deploy-stack
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.5.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aef619eee1b445f9b12b821135b975e4578548c1684378f3f820b9f0ea7916ba |
|
MD5 | d94f1d5f24d702d7b2e798e658338e34 |
|
BLAKE2b-256 | 15c90fe832da51f5dbcc52b26aca3060576d3ef387a2c6a5422d4743f7543a7f |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.5.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1c755979ee9d060a89a1026bb8ee051f4bc6fb8a64f832656294f9cc3911aa1 |
|
MD5 | 483b604c1926bdf4f9022169d565e16b |
|
BLAKE2b-256 | 0babc19e2ce805b071d0d255272f4f7552ea438be396c6f9cdfadedba8e2dfda |