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 @gammarers/aws-frontend-web-app-deploy-stack
# or
yarn add @gammarers/aws-frontend-web-app-deploy-stack
Python
pip install gammarers.aws-frontend-web-app-deploy-stack
C# / .NET
dotnet add package Gammarers.CDK.AWS.FrontendWebAppDeployStack
Example
import { FrontendWebAppDeployStack } from '@gammarers/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 gammarers.aws-frontend-web-app-deploy-stack-1.2.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc8efbc281db404d66138ba43e1ef459d719cfbc2cb70d88706e3cde59a4b5d8 |
|
MD5 | 5765447c04ca9d428889f0e0152bf868 |
|
BLAKE2b-256 | 903fc5a318ef3d6e6323c77291a0e530fc8751452761f24bd17a39707a4670be |
Close
Hashes for gammarers.aws_frontend_web_app_deploy_stack-1.2.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51ff20c505c0bed8ac5545e898c8b6e47e00802b0da76cc5427c4d87798dcb3c |
|
MD5 | 493c20a1c1ac554e7b7a881075efceeb |
|
BLAKE2b-256 | 70d658f7d2c611f449c34c7accdd9121bf05f0ccee9c3f47cb3183e4db258e20 |