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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 564da9cbf49ee10f372e5a3af3697bb3087469636bda56b4272ab0f919198160 |
|
MD5 | 80cdd946ccde87065fdbe4e268450974 |
|
BLAKE2b-256 | 2c1208a0607b16f7f7de0f0225fe60004cc1d5cd4bf432f29f06184886a706d4 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.9.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 019425e5cab8d305af25d0798e534dbe55b661eb069995e5f9b7c2a29193e685 |
|
MD5 | c94f8ee809e2f76759df9b7e9915a4be |
|
BLAKE2b-256 | 76249e601087860c1315ddd3f2a553b34c76dfcdbe88690167203e46c2aee061 |