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.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24fd59432a935b09088fff3d908b000091f8e1751585f282fa4a44d8203943a6 |
|
MD5 | ee00e7080e1a9389c961073f86cbfea3 |
|
BLAKE2b-256 | d0cded928fa5ac3dd16fd575fcd891e1a7fbfa9dc34f37c6d68b89bd7fed6b01 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.5.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb9db64a906c0a0a22c6d28b550ec0c379a1c3bb0013822c72dbc7cb7f76e4ca |
|
MD5 | de707c072cde438d478bfa102268692b |
|
BLAKE2b-256 | b14045231b7d236c69b360c46f8eedcbda423f7048f1d4cac7faed69a61bbd79 |