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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82716c14565fb5d17bbd5a0db854d1eba0c8276aacb3cd5af33966cd6f97ede4 |
|
MD5 | 1603f90c699e1c2857aaf21bfe7e7c18 |
|
BLAKE2b-256 | bd1f18c26b700b7797ddd48b05cb59836a2d98e5c8735f68a0ca1e6e4480843c |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6aaad6a32023a2b09d54a095daaa6ae555cb5863b824c44a1360df2384d4542 |
|
MD5 | 1936761d186151f7414971872b575b2c |
|
BLAKE2b-256 | e7f8e3464c6cae262a97744951d551b3e349c836c0cdf4130ed449ff309c8a76 |