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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e6a2f33bdc37d0a58e958a532252c964fb42e4701602b75d641b7ccc19a5efb |
|
MD5 | e3a16e671b2892e598c36a57ae91359a |
|
BLAKE2b-256 | 458f4de552455b818c1fee368d64e2a3c210f58076f620ce40b1bc3975f534ae |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.5.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30c79f33de2d3868f156e9418150adf8242b8801612eea8c4146db64be7997ec |
|
MD5 | 5959d2818e577c8991ac8b51312f9942 |
|
BLAKE2b-256 | cec703a3aade8d2ca8c197861ee10588cc58032423addc275c07545724542b45 |