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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35127c4bd36914c06992f80374a9a8511606ffe1dbb0d7f3ae94aae40cf840cd |
|
MD5 | 5d2fca29603dc7d20c12074c6aa56063 |
|
BLAKE2b-256 | 608d67f0dcf8207a64bde7e4015c51fe87c86f0b32aa8a0adc131745fd8bdf96 |
Close
Hashes for gammarers.aws_frontend_web_app_deploy_stack-1.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4006b511e0665ee730d539b8a8f11718d2cbae4d075a2d96e059c21ed3bba30b |
|
MD5 | a79468d3a3ddcb88654d7aff985c4788 |
|
BLAKE2b-256 | 0b8448fcd69f13c4cf8f0971db26d421dc6eb11075f6ff66df7e2459b1d65467 |