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.19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | baaf0bc0133bce72a42e9b0df84863565179686550e5d5ed40366a437803401a |
|
MD5 | 1672dfe279ce23b07139d3dd9c90131e |
|
BLAKE2b-256 | 2e925c849ca487d33ba08f18c644723dd6178a921aac80eca11a518716181982 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.5.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4bdf278abbe1bd446db26b135aa99ccb8bb634ff0ad25522e0abaae3872e717 |
|
MD5 | be5f3e470f956e6d2183b1d4acc429c8 |
|
BLAKE2b-256 | ddec9b13aacb7669326cdf952be3f80031a0fdf68f6d93540617ed289b78eb1a |