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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90354b16b0686eec8af98e7a85ee8c3d50cc1e0e6509a4955e2ecad3641fb5ff |
|
MD5 | 24005d206db2a798a1359839dac3588b |
|
BLAKE2b-256 | ba65f66fb3ed638bbd6028bcd05cc5f095fd2da83da6e1d676b585870c7ec487 |
Close
Hashes for gammarers.aws_frontend_web_app_deploy_stack-1.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c552d6828d650840aa0eb5c9f4c41613beebd7f8078d7f0c98407d33dd2b655d |
|
MD5 | b39ffc7550f9781ccbbaf6d22db9cf97 |
|
BLAKE2b-256 | a9fb54f15158a279e61504da778324d7dddc51785d1c0ac9c3e189a1b118c96e |