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.8.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f62bdbe3c71a0553d4087e7862763d4476ef48ca0562006c52dc3438491e26c5 |
|
MD5 | 8adb99415249755ebf95e91c4974a166 |
|
BLAKE2b-256 | 95ed603bb701d6894bd7925bd029b3427f95427c309042e22ba2deec2b5905f2 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.8.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3aa168a827cf5c6d6dc3cdf01858bedc700b2276ca8c4961376c54344c8d2d43 |
|
MD5 | 92c6d18939365e89afa3974d7a29b48f |
|
BLAKE2b-256 | 92e1346d083a1a620e33c70163860017142d2f597f5bf01fcd59b4e739fec267 |