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.20.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9cbbd70037b5671ab71d968721f481a5b23b11914dc484289b5c9f472ec43a8 |
|
MD5 | 711dc13b933099eaee58d12d20e3010e |
|
BLAKE2b-256 | 0006515c64357336e620d224920b65aa51546665cfd8ec3714e548164480fc61 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.5.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c23fd22d03f9ec1d39b2b1e966ba97505a1848ea5c4e5154c4d03f0fcc41005d |
|
MD5 | 30063a1256677d203f484308951f2fb2 |
|
BLAKE2b-256 | 1687262aec6020a5879da2d7d34fc5b60aea000ce03c44522a8a4af8a654d720 |