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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a97efb79067116bfcb6f23c900f1b711f1eeefc0a68bfc913057b6199be1a93a |
|
MD5 | 53149b55e50a85363eeb39e5a81ef646 |
|
BLAKE2b-256 | bc2d721fb687faecaea4dea3e59658feeda73ca0105de524bdbb8c3848613050 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa8cefbec9336febcb3ff3dadcc782d668d9d53dd5fdb7934791df90372920f8 |
|
MD5 | c87f9c6b5919810f8370a1fef6751ce0 |
|
BLAKE2b-256 | 39e4fdea0b4f8fe40297234a74d4ddff537ae9a60115b8060256e86ba708ae3f |