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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b8bfde1641134e3ff1b57cc1af9e2442cf0ae4a0536f8bab27d38ba549f7494 |
|
MD5 | 82dcabe54e89c87be146347b1f29703b |
|
BLAKE2b-256 | 7cf29be77b897a37c9efe5a80f023dd47b712d259c543627c3b5bb92f943fe42 |
Close
Hashes for gammarers.aws_frontend_web_app_deploy_stack-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd98e2d8cf1e8043eb50e4e5ff0df57a18f1b3435e0505a7e6b3eec2c8bbcc6f |
|
MD5 | 9e14ab7a9bc355e54bf86af698987ad7 |
|
BLAKE2b-256 | 5f66d7fa9904698603eebf3bbf49fb53de6bef0cd5784c2d3bb50d036b298853 |