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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 040543ce747ffbe6a8bf9feb9152079b032339e8af405713660c1d4581e6b13a |
|
MD5 | 262d034af6140f1cec08560595459b34 |
|
BLAKE2b-256 | 6e61ca5bd88484fa85fe5d794024c405d1d23071b76e55802ddaecdf5f1b840b |
Close
Hashes for gammarers.aws_frontend_web_app_deploy_stack-1.2.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3319e2515f94f00394b43bdb282432043b66ffb4694ead0ae2d2df9ed93ec1c5 |
|
MD5 | d6a55304584bb107723cebb2966f8529 |
|
BLAKE2b-256 | c60b60d96ed5417e6add7fad4980ff97c907e32e03bf21097fa95b8a2ea96c60 |