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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 782c205556a94933cb3f7576ce8d570cb07a589b05688bce69c7fbbd85aed7ce |
|
MD5 | 198808b99cc5251482a3c7e3a5dd5fc0 |
|
BLAKE2b-256 | 6bea89ca55fb6d8fef462c14252a0267a5ca63030027ff35f469d4e0866fe9d3 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.9.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a8f48c4ae48f419a977001b8019882e7ac2063c63662044cad1f80daf2abf13 |
|
MD5 | 52224931f34da88a737415ff110d2ae2 |
|
BLAKE2b-256 | fea65f3a61f42c196cf566279a8391e0be28963b8ad01487c3b34be21e4fa95a |