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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5eae88be053c9a2de4f02cb70a4e9886d559c414faacd8e0ccb77834ea6fc2a |
|
MD5 | ca7646c2a87037b6ae982fe6cd99f0d1 |
|
BLAKE2b-256 | ff571ff22fe3cd7e244bd9171f58a98618076164eb4b126a3d0fc3bdd818d348 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.5.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6c13de0b8121f89b3817f22e328aa669b9dc3f095402ca0b3233ebaf4d4a492 |
|
MD5 | 015553a18437bd2e5fb2cc9c47f79212 |
|
BLAKE2b-256 | 5a8a95c2cf42c4e843ef97fcc51ae2a8a63fa75c43acabb737090b696725737f |