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
C# / .NET
dotnet add package Gammarer.CDK.AWS.FrontendWebAppDeployStack
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gammarer.aws-frontend-web-app-deploy-stack-0.9.13.tar.gz.
File metadata
- Download URL: gammarer.aws-frontend-web-app-deploy-stack-0.9.13.tar.gz
- Upload date:
- Size: 52.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f87bfc02438cb600270d1b08c37c6d93ef29719125217131038f5190a52e5168
|
|
| MD5 |
2b4b04943d49d5b702939d0a5c6c1945
|
|
| BLAKE2b-256 |
e3315e741f9545696cf13d741221bfb966683049601c24866f7b07ead5fad5a9
|
File details
Details for the file gammarer.aws_frontend_web_app_deploy_stack-0.9.13-py3-none-any.whl.
File metadata
- Download URL: gammarer.aws_frontend_web_app_deploy_stack-0.9.13-py3-none-any.whl
- Upload date:
- Size: 51.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a65abd5f475ca0690f461885ba575a41112c3a827dcf1d77018b58eced713edd
|
|
| MD5 |
da629291613590289108baf7b8ee4f4d
|
|
| BLAKE2b-256 |
91d08c05e655e173e9d3569bd0fb4d3b5f43ccc5b41d67d85b8c88fc452f0512
|