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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | da380ab4984ef689cf2990b41db72a2c24c909333dbe371af8e7920ea50d0fe2 |
|
MD5 | 6c7c95d4834cd9985c3caaea230d95cf |
|
BLAKE2b-256 | e1e7101d2049e53d04a522dbef653c235fe04dd848a54f3c51d07b35c11bca6e |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.9.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2c6ed43249a47496e1a0d1f6f6f48e2def31054609fe5673611348cc3edbab0 |
|
MD5 | 2ab275bf53fb83825074c9c535d5fe3e |
|
BLAKE2b-256 | 9ffe745cab61e54ae9913f524aa9aeaa27d05f0590d4e248d3de60f9b8418f11 |