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.15.tar.gz.

File metadata

File hashes

Hashes for gammarers_aws_frontend_web_app_deploy_stack-1.3.15.tar.gz
Algorithm Hash digest
SHA256 64c7e55b56567298a9b36322b4bc5e0f1a9781993f863034c1d92671583d8db3
MD5 83aafeb9889a6f30ed47d13d06e5959f
BLAKE2b-256 d58e1a1cfc235d2c6c4c397193e5d5a39613b41973de641b62fed95a47e0b002

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gammarers.aws_frontend_web_app_deploy_stack-1.3.15-py3-none-any.whl
Algorithm Hash digest
SHA256 ba61dcfc4b505287c5d71bc6af3326c6d9b0b1b8af6c684cc59b550e1cbdbe38
MD5 8c74cddda461cf7d3ef29171b0f1e577
BLAKE2b-256 143a08e4b5ffbba46006926a27f6edcfb0e813c3c056911ee83397a961a06542

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