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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bca3b3ed039479cfefbab4834f82e39916b2d8c682ed06c045887f1276e6f50 |
|
MD5 | e3fb5f60176b51a654a7b85dbccaaa31 |
|
BLAKE2b-256 | 303a96927ad3518c4f34fb7936b167e284e5bb8977ac17078644dd243d686e60 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.8.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 356939f256bd464b8470ebf54e80862da5b5bfd7ad411fe8c787e9629c47e458 |
|
MD5 | 3c67730d80ac96341f3fbefc86c2e172 |
|
BLAKE2b-256 | e4a3609ba38d735c1c4e8e626d73127c8bf793ed0b7965fc9ce4b8631a2a2e80 |