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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cf49784096e04615f3e3fc18f0c599c23de03c7d752c143b8e7097aff285bff |
|
MD5 | 2e265bb27c58a03941891d7f4c4352c0 |
|
BLAKE2b-256 | 4d3e664669954cfa136837d3217945af49956b48f6dc741bb959988f66acb6ed |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.5.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a8e002bd6f9afc6d3360386a647d02b51926bf9d3b95224c9da2aa9e5539a8e |
|
MD5 | 8e1203f8475d5a15541bbc599e23f7bd |
|
BLAKE2b-256 | 575d0bcf4b0bdfbd099b385d5536d66ebff97e2a501ac9b328772dc7e85dcefc |