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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa7fb932318a29149a29538016cdb91d0f4ceef78869031af7fabfce80599311 |
|
MD5 | 8b895237536ae7ec71c4a7c8e4697021 |
|
BLAKE2b-256 | 68f5d8e47fe9c43cf95e5031bb841b1a3a1723eb349cd4a2fd8b355661b1a357 |
Close
Hashes for gammarers.aws_frontend_web_app_deploy_stack-1.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f58a6d5ba80f9bd5b1ef0c144860ef2b4abadbab1195102f2b143970f73dbc11 |
|
MD5 | 01352a40778a2773ade1605380d086db |
|
BLAKE2b-256 | b2f63f9b728acfc975bdf63fdf160fe51306e58d3f545456b8fbc21f694bbb89 |