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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 610ef97a95fe468eeab6146493f7d39fc1279221ec426e8b1ccddc9140f88d9f |
|
MD5 | e466df5a7d279b60268b51a896f93e01 |
|
BLAKE2b-256 | 3ef9e1d47fd41a6aaf0156058ecba00b6cfb60005bf502e58d80080e501d8c46 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.9.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5380742ff267dbe12bfde04fcfb220948f53aee2c4260936fc01251efeafb85c |
|
MD5 | c266aec30be4a30698b37ca4aac91446 |
|
BLAKE2b-256 | bf4bd1aa872a4ff38f7d6952f2349689d05d02d99fd81696a0678e8f174424a3 |