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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d5e287a529ad1ccf58eb7aa1b891c0b31d3a4f883d083a534d3b6de417d1a0e |
|
MD5 | 64d17508c414ca51edb9867abfb6c969 |
|
BLAKE2b-256 | 5f20039ac4e7f403c35a0e9378fb700edeabecdb74a9bbcb253146ae1aedda58 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.6.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1bbf41b41528d438218ba6f85d949712c62106a326b7c63824f29578613fd48 |
|
MD5 | f8fe6c5c5eedac0f7c20d429b15b049a |
|
BLAKE2b-256 | f8d23e6d06baa844f8ffea9d58b2cc14f8c8f7d11564302ad3899ff6cf767d4d |