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.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | da098a0f04845fe8f483a21a9ac1909fbac7b7e1e570be147223eb94ee696c6b |
|
MD5 | 93d5903ffe49f4c39d76710fc765a726 |
|
BLAKE2b-256 | a58f4820accf7a42051010dd89834fec99e26e4929011a970253dcd101d6834c |
Close
Hashes for gammarers.aws_frontend_web_app_deploy_stack-1.2.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f42f5cad7da24a510a4fb68e9c078791e1ea2c28985565363919b9ae342df56 |
|
MD5 | 879ad569947d9c0cf2dec648497f8701 |
|
BLAKE2b-256 | 761fe389dac4fd85808a4789238f91a945ea0e1ebd087d0243ed238c28f47751 |