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
Example
TypeScript
npm install @gammarer/aws-frontend-web-app-deploy-stack
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.5.18.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 080ff592952094b7745d7b38e3ca164da12343497a3889ddfafb5d40e7e2ea3c |
|
MD5 | a18d53d8e8f82e2d8ced20d944bc97fa |
|
BLAKE2b-256 | 1bb14432b05c8a96438970b4eeb2654c20f9bb6126ff05046a6ab9d92b140878 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.5.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dec54b2d2fda60dd0f40d1e758aa0f1759a8db7bfa2a27f2bb0640ec0c7e740 |
|
MD5 | b46e16be65da8ddce48514babcb6ab3c |
|
BLAKE2b-256 | 081b88791ee2212eaa53ce19d68a990edbf5fae912403f57604c01139f7270e3 |