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.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c214747b897afb0ccd4856e2198f4590961a1df028269ef4f74de5248d111efd |
|
MD5 | 44523a29133c18deff13b8c2cb2c53db |
|
BLAKE2b-256 | 8f36356f1a75af88c53b8375fa842a48f9a0d4933691461a7680c98b5eb4dc2d |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-1.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9d8f7f68dad057185b491a2094c80b461aa805fd7ce72f6506d355ad5826a2f |
|
MD5 | 5757e3cac8549f35a4292e14517d7a52 |
|
BLAKE2b-256 | 2c24556b57c981873f5cdb85b5419e7d8d97e5fe2e30b8c29e14358b49ce10d6 |