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-0.9.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 365c799781e2d680e88bbbb19790a15af2ca53439765651b2017a1d1b20d681a |
|
MD5 | 1db3f7a9750a0cea11e90264b246f777 |
|
BLAKE2b-256 | 18084f420deaf2b907806ab3474a579c881094971f7b86f17222480b377290ac |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.9.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b9bdf696ddaae68865cbd908b35e32433d5e86971cd4837c3d18be9b7bb5591 |
|
MD5 | 92fcb625216aff5ab39603d3f8483a74 |
|
BLAKE2b-256 | 4a77fd516ba92d24febcb65d30589cc521764366cccbaabc23fdfe28d9f23f87 |