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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 323c85389569dcc37e9a1d9465fadfc27112d2551732b9dd1a521dbabafc002b |
|
MD5 | 09aecc150fbc8e4b4387eca0a9caa051 |
|
BLAKE2b-256 | 71f91aa75542940cffc767a8664a3732fd1b52905bd37cbe385f499fe18c08b3 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71e1816bf80bead533b4c3c30ed78cc4892ab6a26d47678691a01a717f716faf |
|
MD5 | 279a5199e72caf283cbd8359861e2846 |
|
BLAKE2b-256 | b7709621a71bcada1236deaa27faf7b4f9d785ac8efef41952cdc74152d6247e |