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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e1da6cbe2975e0d1e95dafbbdd473a03de1c15c0756319d0eede1f14860cdfb |
|
MD5 | fbf4823340654d60b4701930709dc6c8 |
|
BLAKE2b-256 | 560f18429343fd6dbe56172a2d0be74325788f452c26652df00bccf46708aba7 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.5.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 912c4b0bec7568109d10bac0ffdbec3db4797d5848b925cf32e3c1b5c6bcc19f |
|
MD5 | a4e8a18afa507a9012668e3f2ca60314 |
|
BLAKE2b-256 | abbe0d45b07d18090093d3be0e4f98780dd54260baf0b1ca17e99bcafaadb950 |