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.7.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97c4d7c5770c4df10519e8437de8f131a6f55047755a0f4e32b9f5407c085532 |
|
MD5 | 8f5b520f5e883547b86e66a4137df8a0 |
|
BLAKE2b-256 | bbead4c6e362b36ba78e245a05ecbd11afbec7c6b2933599689ad540718dcf93 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.7.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e45660540e766a4ea2801fd26ce5c700e721fdec5b9baeb58caf6aaeec56b2c8 |
|
MD5 | 8912a550b6db713aa42e26283dc3b12d |
|
BLAKE2b-256 | f9ddd12c1a81c6e8553fc1f092659f2013aa8a647b7c4746b863f1699781320b |