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.7.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0c3c49e3d69e7bf2e9344ecf92a31dc975d92be8d1928a09d6c6feff6e6bb40 |
|
MD5 | d9e39864b4653f62d7742a5a97d5b3a9 |
|
BLAKE2b-256 | dc47bd6a0130f74684cb95941155483424b3f94b455d70555c41bf8a83f2a8f4 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.7.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09d8b52d4f428be8e434b2c8ca7a28bd4070991bf22093343fbce0289b746401 |
|
MD5 | efb9341b0e8cb2d82577c209fd707116 |
|
BLAKE2b-256 | f95151a284afe54f1aa8fcaf7ebb73e208f9d33be107249f1e84ab0b8b426b79 |