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.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f44488e13137633f756c143dbb6e2140c22ca4a3ff39e372bacb021f34f349d |
|
MD5 | aea626b596ef4c05f4409bf90536864c |
|
BLAKE2b-256 | 654ebc5c6162211165c74423c7b2ee15dd86d8ec9d9503b84f749765842acc31 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.5.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e66108fa7062ef3b344f68a5d73d046feb34979a22eed3f9ae40ce1bb4a273b5 |
|
MD5 | 807e0e3876acb68825ed36eee69785d5 |
|
BLAKE2b-256 | 05ad4c9eb1e033fab1fbcc171bf818ff556265354c8b7d888cf7f15e3a6239b0 |