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 @gammarers/aws-frontend-web-app-deploy-stack
# or
yarn add @gammarers/aws-frontend-web-app-deploy-stack
Python
pip install gammarers.aws-frontend-web-app-deploy-stack
C# / .NET
dotnet add package Gammarers.CDK.AWS.FrontendWebAppDeployStack
Example
import { FrontendWebAppDeployStack } from '@gammarers/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 gammarers.aws-frontend-web-app-deploy-stack-1.2.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d671a3e1315e720dd308215211eb8fdc132533a9d5a03f41782c2084ac8f4b50 |
|
MD5 | fc4c46f9a57dfd91b141ac23567565b3 |
|
BLAKE2b-256 | e24a25a7a88535ca2d2d8c4f4d7d48e63267cdeb2c4201aa9eeaf733e50d3af2 |
Close
Hashes for gammarers.aws_frontend_web_app_deploy_stack-1.2.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6025a95535e421ba033dd45aa68ea667e022e0cf802cf82bd0aea98fc041d2e |
|
MD5 | 2a34557b1e1d8e7761693e219a640273 |
|
BLAKE2b-256 | 7b10c7e86359faa43c444bf303cb86abfd3fa968260b0849006d7dcb374e6e77 |