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.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f275db608129d7148f76c53d8368bde3a166199664ebafbb0635848c72ad806b |
|
MD5 | e11521febb9538832c9c9b3da00ce050 |
|
BLAKE2b-256 | dfc5c861955d06708ea65442119ac3c00be44a130c1177dd8538a5b3ff654db1 |
Close
Hashes for gammarers.aws_frontend_web_app_deploy_stack-1.2.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acbcd4a0be4a44d68499baabd0aba9d15b417b2d96a8776642441db164e4846a |
|
MD5 | 2401a27914e204eb29c3fe09a788a29f |
|
BLAKE2b-256 | 93ea96bfdd7867f866844ba3301cc42f4d17d76ee388b2f38739ce0caab86e27 |