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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1511b43a263955c49dbb16790d1cdefc2615038a1832e8f1e589bd84782f693 |
|
MD5 | 81943f91b277d1c14cfcea7b63bc2c92 |
|
BLAKE2b-256 | 98141989db2a141085824dc35374c6f091b88e21478d26faf70e6d96a0680977 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb3e25ed0bb558f6d9519aaf5c4f5fb360ca6cde85bf23e47ac0a7763adbb486 |
|
MD5 | 24802ded0644c558c22e388210a8786c |
|
BLAKE2b-256 | a3d6a7d52f05cbdaab4bb7f192634ac4cd4452d509540acbb98b2b23dfba91d5 |