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.17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee8545fa89e7c6b9ffb2d944e8a71f2295f55f68c63a6d71ac94e3f488f96cbc |
|
MD5 | 0f42ff2e414b6bc9815a181c8e53040c |
|
BLAKE2b-256 | 46fcb9811b95275a8d0ddbe87ab6c2bbad7bfe675ac0c71b314c55ab2437f56a |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.5.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a87b6454c059b4606493f9b5503a505931a9e707242c64ddea88f5b080f392c |
|
MD5 | 5c33694bab6f90ec15ccff7a25befbd5 |
|
BLAKE2b-256 | 6d366263738b8807d40ca6830c89628b65b39ab5460666a83d414d0a906d3f63 |