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
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.6.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d70b4c5f41b58136dd8ce5d422748118d1d64409e6945e670e72936c407d0ca |
|
MD5 | 93d0aeb723ed947072fd54ac8e04db23 |
|
BLAKE2b-256 | e90235ea30d5c9e334082460c412d3d27d8ad65358d64bec8d8d629e1c749473 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.6.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8721e60875d5aa9b5249457381c6597f59ed8ee83352b2a8361cde3e437f245 |
|
MD5 | 66ae654c3e6c5508014a99503a639d4f |
|
BLAKE2b-256 | 3b34033667299a61dc1d15f966a08ae47b85ad6d70870343051469cd8a29284f |