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.
Metadata
Release files for gammarer.aws-frontend-web-app-deploy-stack 1.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gammarer.aws-frontend-web-app-deploy-stack-1.1.7.tar.gz | 51.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gammarer.aws_frontend_web_app_deploy_stack-1.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 100.7 kB
Release files / gammarer.aws-frontend-web-app-deploy-stack-1.1.7.tar.gz
| Download URL | gammarer.aws-frontend-web-app-deploy-stack-1.1.7.tar.gz |
|---|---|
| Size | 51.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8d2304749f11d4354a43fc89f04126aa65b1ab741709bad26f90ba6687723ce6
|
|
BLAKE2b-256 checksum How to use checksums |
6fe5c7459beaa5362ea958f7abe1671e48ea00e9beb3ab8c5d258588f6a64989
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / gammarer.aws_frontend_web_app_deploy_stack-1.1.7-py3-none-any.whl
| Download URL | gammarer.aws_frontend_web_app_deploy_stack-1.1.7-py3-none-any.whl |
|---|---|
| Size | 49.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ce95ffc6d5ee417828e6e3b60b257c60772d190a4e6e1e23cb6b744d27c5197
|
|
BLAKE2b-256 checksum How to use checksums |
dcff4849c0e5b10df8d85336f31e61ec48ff358f35899af6f744bf4a5b83a4f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|