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.23.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f00fc87af044c8fb540b2a6e15935c85ec7903d2d837e820971fbd70fc6e8f0 |
|
MD5 | ab64c2b3a74a33b7e67cfc9814d686ba |
|
BLAKE2b-256 | cfab2a098cde3c8020094221432f696353a1ef82234431a880bb2660cf488997 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.5.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c591b2c0ddae269aa1290aff4baed19dec010db947e4d03b90b769a9213bf576 |
|
MD5 | b8c34ecad2f84910bdd439914c0ae0de |
|
BLAKE2b-256 | ddb110c6e6bc41dfe0eb29058cad142b96b6a580a8fc6c2959766bb58d181824 |