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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 108b991bc4fac32862210a181f5e614cb2da49eaaa7df3fc525925168277510b |
|
MD5 | 6c5ebd1adad940ff0beaa962645a61c4 |
|
BLAKE2b-256 | efeda4a989f4b6e0375bd41e7fefaadadba67397ee4b9711fb62fc6956878435 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.5.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cc377200caf7215c8a36c6f568073ef23dde7cf46b084dfd790fb181fc2fa8b |
|
MD5 | c4d3b30ea5b9115faa5a8d5e764befab |
|
BLAKE2b-256 | 41efbc799167f415b247f0242b1a8b22c0c5d286a81ead9f490b6ee8f2e0d606 |