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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffe13113bc4a67d373bf297868a8c4cbe1601b5d05a5462d948b0102b87f5823 |
|
MD5 | fa906488dad59f1b90080a402959d278 |
|
BLAKE2b-256 | 6ad4ba05d53e5779b8904f4f9f7698f7e758dbf730e368739860fcd893b9b0fe |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.5.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6a68b402a64126bc718717d5821c7d78c0b2cb13efde80155c25a006323b8cf |
|
MD5 | 3939e0f2409ab0f553fb487f3655c456 |
|
BLAKE2b-256 | 7a6561a1bfa98dcdc412cbb2f72d734d4d7dcd7dfd95f58d12335fbb9b0df4cf |