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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf6b49b859b587be70ff088be566c4f5c076d00bec66c2b11b1c51463172793d |
|
MD5 | 15fbe90bc5541a7d1697cc244fa0b826 |
|
BLAKE2b-256 | d0cd2e204d0f19a9ac47b72f00f888c1ef85a7ae9ba3100d9c5aaa80bd1e296f |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.5.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa5c3da11ca7ffa40e62167467b4cb1f3cdaf2e45b76dff0bd5bf518ac02670e |
|
MD5 | a421ba05c5ee25309e241cf627405471 |
|
BLAKE2b-256 | 05bdaa94c5217464c5a700b41d6acf1f53a08abdd9983587dccfd67923a8d3d8 |