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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f33a23ad9aa53c31b20b0f366950ef0ff4ee4b127be2917611ba202f3ccc5e6 |
|
MD5 | c10cfabce2fd3f2b96b6eb715b2730d6 |
|
BLAKE2b-256 | 2baaa279e2a683b7f6c4e2166f76fb7cf7c8f0ccbe3eaec35ccc16c9c1e6ec40 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.6.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3974e01573480a697114601f805d139d7d73df5daaf720c41c2ddf16fbad42e8 |
|
MD5 | 33d4f24774c24b723f1339800b6add1f |
|
BLAKE2b-256 | 5c9c3d6893452af9f33083c88219e33fac667682727afa90699740cf0513d446 |