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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 754e2491819c403761a2e162cccba3b1ffaccc13edce5b52fbd7a6ed145dc598 |
|
MD5 | f7c498dd4db26156472056ee60e04c46 |
|
BLAKE2b-256 | 6e2d111bd157de24a8db7db8106aff4d74dc7a442c713559b4870fd800817d7a |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a4036ffc9dbdcbb5a79ec0a02e710499c372973b33e41419faf916933515d2f |
|
MD5 | 6c37be130643e6c1fe14430bf9b57c1b |
|
BLAKE2b-256 | 6c7df343dba43dc36ca9b46e272344b0658eed6c1792625e458a7c9c6c2c9b48 |