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.0.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 801327c2d2246516081fbbf77c584ce078c4b766d8decc5d5459a61f37247b47 |
|
MD5 | 7715a0e7b6400b886398aae4b91a3837 |
|
BLAKE2b-256 | a44b9eaa3c3ffa62c92d67c6c9e2b33a6cc175bd9620396a26e06f9b8602a877 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-1.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50d9eaba79d915039abb9e08839538b9e92295e2341620ce712059fcccc7fbc1 |
|
MD5 | d02b360be03021aa7b1bdd9667d7186d |
|
BLAKE2b-256 | f8cbaca933974cbcd9e7b4a77c75417beebadf06021733cff55a68a5bf434bd5 |