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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37e7146e3e69cfa3acb6b18d5daf7ef69bac1c6bca752f53a3adf4b203ccd320 |
|
MD5 | f93f9d299b21807654614cf0f5ea4d01 |
|
BLAKE2b-256 | 6dde3393e5b307e8762a0e3f7cd97868b1c7799e356974704ad7faa78d4640cd |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.6.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c06cd58d7ca43c40d51f4177b9e8216c7f08001005f58dd751aa184830911abb |
|
MD5 | 5e22e5ad288f20d2afca8d8da5011507 |
|
BLAKE2b-256 | a1c5d123f6e5eec0a0c8a7d41abd850df8f2779a117b522548e752f88ff28737 |