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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 055533ddd019f1429dfb6918cb7b24b055d73d9e5efb57aecc862593b8b0f4d6 |
|
MD5 | b41f607d5ea183f95ea43b06c79f3760 |
|
BLAKE2b-256 | 3a9c616a08cf9ec6ee332c4749be7a0d7639b27d9cae54840549f0516c19d210 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-1.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d9e881d560779d9123da853c6f94f85624803fd8144b7df9a183be545e638bf |
|
MD5 | c4d48821c40b15acda6ede6473639b08 |
|
BLAKE2b-256 | 44b06b7ad102f667e9553d2ec54e629449c37a5bce061b594617438539a26f31 |