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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a65263c3dbf424ae2a29eb95a58310d9a7657922740106f0437fafdb9fdca7c |
|
MD5 | 42a242d8c92d004417e92a64f3203b1b |
|
BLAKE2b-256 | 32f7915e0d84b6e544c15c7b83d161f699580b37fa4f57853ae4a4bb708cfd06 |
Close
Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.9.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 869190ab05f0bf25eaf6a96c859ce8ae0a30f7793bcf812c6821c89228baddb4 |
|
MD5 | 4fee9b20e0929df0f7640ba56ff41002 |
|
BLAKE2b-256 | 9db23079fa0bb613a75f72080d8d22eef69005a4c5c2eeb52c8dcf67e41f3140 |