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.15.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ced6a2994d51a9685626d5a4921375074a29dfe415e55a3cf6e26ffba747e4d1 |
|
MD5 | 2d12f83a71f327d9c7614c236a527ad7 |
|
BLAKE2b-256 | 1ba429a9ad19b7dcaa1466d222bb2a36f6ec87669187460187b5bde29da5aa65 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.5.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7df386ae3c7a4396eb70c0489e7948067aa85498a815304d42fc3a0366dd22a6 |
|
MD5 | 01e63ee88e666cab04954ac60685a3a2 |
|
BLAKE2b-256 | 6b0aae59111e53a6216b3ccad01d635d9910d856f17eaee61d49cb3a64b9eb75 |