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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d13462b80e824f860e43d91c64776079f3490a4026536bc60bd46a6ee0f88781 |
|
MD5 | b17ea322b962af1098efe5fa3d28e70b |
|
BLAKE2b-256 | 610d65cb9dc945323bdefa42e016f4547eb503a3a51065a6cd698bdc052bf25d |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c36aa6db55542583a4b805999fcbb8def523a21fb59b16505ce1da890556d44e |
|
MD5 | 9d3b0ad0fc661c5c0c8697466a6d57a6 |
|
BLAKE2b-256 | 8fbc31137ae80fe79b58b464e923cbbcb12c848d7f31e0d18f4edd4cb52d7aaf |