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
Java
Add the following to pom.xml:
<dependency>
<groupId>com.gammarer</groupId>
<artifactId>aws-frontend-web-app-deploy-stack</artifactId>
</dependency>
Example
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.6.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 129fd8a306af36f56d88a07424ca49ed7e9aa26d4aa9df2bcf1b2f1f83a6a66e |
|
MD5 | 7de9b65f8b916606105675d87e524ba3 |
|
BLAKE2b-256 | 0a00e16e582332b2a78bc0d0505c84b16540d62b10c71921414f051a00f35ba6 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.6.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 531920de6ccc370af0f62f21b72c91f81200b906ef20954ee1bb28134b016d8d |
|
MD5 | 819146c1ff2626d066598360ebeaccb4 |
|
BLAKE2b-256 | 3942b119199fe89c64a8e2d9863459ed1add8f976ca9519caf08841a54a92c02 |