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
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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85891c34daf877b2f5f5463448656c55d809403f0d80dfcdbec1653985ba7e02 |
|
MD5 | 232d91cf8938f8924e05b396c1114e2c |
|
BLAKE2b-256 | 5b041fa2baa0c17da0e3c0cd0e1ad598d590f7036f0340015e884f840955dd37 |
Close
Hashes for gammarers.aws_frontend_web_app_deploy_stack-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bfc670fae12284fde298f1b05043d7973da3ebc4dc3232fef832051543e5eb7 |
|
MD5 | 49bb0ddc0fd04deddcf0c8e3a963fc9b |
|
BLAKE2b-256 | b47907dd457489855fa5f30c43690db4dc2918c13218471f34118d5fe3a8df5a |