Skip to main content

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

GitHub npm (scoped) PyPI Nuget GitHub Workflow Status (branch) GitHub release (latest SemVer)

View on Construct Hub

This is an AWS CDK Construct to make deploying a Frontend Web App (SPA) deploy to S3 behind CloudFront.

Install

TypeScript

install by npm

npm install @gammarers/aws-frontend-web-app-deploy-stack

install by yarn

yarn add @gammarers/aws-frontend-web-app-deploy-stack

install by pnpm

pnpm add @gammarers/aws-frontend-web-app-deploy-stack

install by bun

bun 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


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

File details

Details for the file gammarers_aws_frontend_web_app_deploy_stack-1.3.1.tar.gz.

File metadata

File hashes

Hashes for gammarers_aws_frontend_web_app_deploy_stack-1.3.1.tar.gz
Algorithm Hash digest
SHA256 05c650a8297b59429b526f83d7741e6e005b538f93af5b3e7bbe149827bef168
MD5 1dd1debc015577a3909859a21e59e31b
BLAKE2b-256 3f887cb3dc2ea209c5e980758367001fe9c7e3ce47eb47a798da7dfe8f2f2c55

See more details on using hashes here.

File details

Details for the file gammarers.aws_frontend_web_app_deploy_stack-1.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for gammarers.aws_frontend_web_app_deploy_stack-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6caeafe599f6e55092892ea088aae17ccf09335e23b741947580dd6d863b8379
MD5 144dfdda8b02eb35d04c4eeda2484daa
BLAKE2b-256 035fa21351e63e9d52a2c1e5da042ab180806499f0c269b30bc509cf83c0c848

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page