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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e23cecafcc3bcbe04a096a32caf8a6f345878a49604dd91c254dc408b0e12107 |
|
MD5 | f98ceaa2848b202e2fc22efb3b7eb22e |
|
BLAKE2b-256 | 0f9dfe226f14eab4b09ed647d4733e1509f74fd87b2c2deea1986161a469315f |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4e067ce47699fd57ec75380dbece0362a52234ea7addb2a918c69fb6c07c921 |
|
MD5 | baa14eb2ca54da1346d8d5d71822256e |
|
BLAKE2b-256 | 7b943248c17bf4f010a7a6de731b964e769de9a18b7093930408c4e7ccb13262 |