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 @gammarer/aws-frontend-web-app-deploy-stack
# or
yarn add @gammarer/aws-frontend-web-app-deploy-stack
Python
pip install gammarer.aws-frontend-web-app-deploy-stack
C# / .NET
dotnet add package Gammarer.CDK.AWS.FrontendWebAppDeployStack
Java
Add the following to pom.xml:
<dependency>
<groupId>com.gammarer</groupId>
<artifactId>aws-frontend-web-app-deploy-stack</artifactId>
</dependency>
Example
import { FrontendWebAppDeployStack } from '@gammarer/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 gammarer.aws-frontend-web-app-deploy-stack-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 309978a3884f8c431bf74b6ef808311c646475236e1d37d595421b37f2d82e7d |
|
MD5 | db44309a2b3a8ecb1c62932bf17e9635 |
|
BLAKE2b-256 | 03cab0a1f8b4eb743036c4e58d9162da4bd1deac09506a19db958a0c11f26cbf |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 562ac1b103515682f92824addee58f454605b3c11c034ff06d4a6efcbe3e8216 |
|
MD5 | a79763bd6fa80dc7e3af5d15ab812355 |
|
BLAKE2b-256 | b56404a2ccac5fa47a7178df9503b0dd85d01895e824a3097d0e5efedd37f0a2 |