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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9e4a078b5eafeef688edef2feb5ffbed623d2677189a82038985a170f1afa2b |
|
MD5 | 79859485af2a7c913b3f98232155e4b4 |
|
BLAKE2b-256 | 4ee656650cb47ad9e3b4163e8fdfe595dcdda24a6515c86143177c8621cd3fb5 |
Close
Hashes for gammarers.aws_frontend_web_app_deploy_stack-1.2.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f275a72f179686c96cdee180493bffde183d289330ddd76f103aa49cada3503 |
|
MD5 | e93f6fd3e06441e4331737ae49750f0a |
|
BLAKE2b-256 | 00dc956fe44c8dc266943b749708ea15748ff5b9fbdd9e05ddc41d67eb4b741b |