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.21.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41e09814c489714494140894c7ae4391044a1080c7b97560b7491819f6b5129f |
|
MD5 | 806d4cbd984719518d3d74f3ad2a14a3 |
|
BLAKE2b-256 | da4e6fed337744830399f5ada3d8540c8e15d721580222d641484f9469e40e80 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.5.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96c1bd97ecc9934cc524360cc9af79e47d2650eddb47baecc0c2124bb9c3f35e |
|
MD5 | f39b3ab3ca73943cf3728ca94da35852 |
|
BLAKE2b-256 | d718d0034c7a0d29f10e75cf6f27cd215343b1049fcb889c28ec67e73b74d332 |