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.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fad912b89462e6ddec935fb6d2cb7a97a1a5921820e7c10fd28a8335c07d6495 |
|
MD5 | d508e1204f4650ce64cd4087862033a6 |
|
BLAKE2b-256 | 9629c61bb5c797e9b8c42d1100bb3f43c4282f7bc38e98ff74804194e2b4d81b |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.9.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d21ce863c2cb03377587ecf4d8ac85a7e8bb26c58d60e373e152e8c7a5845dde |
|
MD5 | b8ea2c09dfd65d6d603b768f1ae095e0 |
|
BLAKE2b-256 | f966c93fe9a486f0ed4af0e48f4ffc0474deb48639aa8ab5195184db4dfcccc3 |