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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65cc97e6eb1dedb4a8856f63f64b0d92357bb72cd8fb519bc80f4bc1d94a5bec |
|
MD5 | 970702dcd781142a95b229da0fbc5174 |
|
BLAKE2b-256 | 528e50b732928bbc39ab27da645c2f439761ee163375ab2cf20edd9cfaae740a |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.9.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2897baa2cee0d9df0dd662853b22dafcdab6f71788a07abde0c6facf6f1b97a |
|
MD5 | 5e2f011a3c5b68eda2fa8f78e0af0236 |
|
BLAKE2b-256 | 1971bfa307ee9325ada0b679beaa85c17b03815d37150616efcbd26839f9a9da |