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-0.9.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f87bfc02438cb600270d1b08c37c6d93ef29719125217131038f5190a52e5168 |
|
MD5 | 2b4b04943d49d5b702939d0a5c6c1945 |
|
BLAKE2b-256 | e3315e741f9545696cf13d741221bfb966683049601c24866f7b07ead5fad5a9 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.9.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a65abd5f475ca0690f461885ba575a41112c3a827dcf1d77018b58eced713edd |
|
MD5 | da629291613590289108baf7b8ee4f4d |
|
BLAKE2b-256 | 91d08c05e655e173e9d3569bd0fb4d3b5f43ccc5b41d67d85b8c88fc452f0512 |