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.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5d4dd27516cd573be1d2dfa6c7af4dc3c30d9ae5fc4d57bb2ac23e4b21edf74 |
|
MD5 | aaca15d3cbaf086ec9584455b92b685a |
|
BLAKE2b-256 | a7d505a6d4b47d5628594fc71d50cf23c4bf7144861419d62588138e5c3b7000 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.5.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f000735f7432d910988d501605a503ccb1a3d53c8def53ced286631ae658098a |
|
MD5 | 946c73669e8a5ca5bea2a05f9af43733 |
|
BLAKE2b-256 | 33161a9d39a1cabed06e27fd9f481fdcbbf481c180a6229067665e3928810554 |