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.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c61c30bdbb183fd3fc99f9ff182c400c14702604ba1ae451e5ac8bc156287a64 |
|
MD5 | 3c3321e906a6b22cd5b8473bf344040b |
|
BLAKE2b-256 | 1ee441b36acda52a2f5dbfaa5446ba931a94f2fcebd96d2ad68d3e43b0a4d2ee |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4af4d744507a339e87f7c76e63bd8fa90bae6361fef63607fc0a5d0d5900964 |
|
MD5 | 3612f42906116aab8d5e119b2a005563 |
|
BLAKE2b-256 | f0bcea1da84bde1afdd3d9d60135e0ecb6481ad86c88ce4e66bc38b87880bc96 |