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
Close
Hashes for gammarer.aws-frontend-web-app-deploy-stack-1.1.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 449fccc78669c4d86c1270a3db8e3a4ba320eb3abe6443db1bc3bdf4cb8096b5 |
|
MD5 | 70c8b0287e99c68592c52462e2f78d82 |
|
BLAKE2b-256 | 8c82b9d2e180423d34a123cbbd4238c4410176d3d18b4ffb0a902e83700c7e19 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-1.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9a366f406b5ad5bc56a36aec8000059d006ebe72f06a02b3fe3a215964a4795 |
|
MD5 | 2ec948e600e801d2eb9f719917299378 |
|
BLAKE2b-256 | 896038292267eb1b0efa4501b5256f3816ef27cd5b163a69646594a5340b5cb9 |