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

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

Example

TypeScript

npm install @gammarer/aws-frontend-web-app-deploy-stack
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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file gammarer.aws-frontend-web-app-deploy-stack-0.5.13.tar.gz.

File metadata

File hashes

Hashes for gammarer.aws-frontend-web-app-deploy-stack-0.5.13.tar.gz
Algorithm Hash digest
SHA256 3c33d53877655aa9fc14ad39b8283e641144cd060753f5600fe0c6356147e8fe
MD5 739f7069616230f33d42ebfb20ebbd5a
BLAKE2b-256 7133c31dfd71f6f666436415b22387f1cd819cd8190a6ad3160bb791775ff2ad

See more details on using hashes here.

File details

Details for the file gammarer.aws_frontend_web_app_deploy_stack-0.5.13-py3-none-any.whl.

File metadata

File hashes

Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.5.13-py3-none-any.whl
Algorithm Hash digest
SHA256 ae07a54bcef0cc142c714c6ed546601e19ff825d4e93fa992e611256de0d7bb7
MD5 71ffa2937fa143ee9672c4a3dd7577cd
BLAKE2b-256 e03ea15ed88c657174bb159bbf9ea882802dfb2de2f510dadfaaa8690c677309

See more details on using hashes here.

Supported by

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