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

GitHub npm (scoped) PyPI

Sonatype Nexus (Releases) GitHub Workflow Status (branch) GitHub release (latest SemVer)

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

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

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

File metadata

File hashes

Hashes for gammarer.aws-frontend-web-app-deploy-stack-0.7.2.tar.gz
Algorithm Hash digest
SHA256 838b356b959d2281da99c47bc137f5b4626bbcaf7c3a6b04e64ee1946281f4d7
MD5 c28c3ceb7e79f4c98a445fd9862056e8
BLAKE2b-256 23a8825006fea7de7adc80c02b5ddcfbf4762ad254b73901259c6b0b98879e8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gammarer.aws_frontend_web_app_deploy_stack-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1784dbfa5843eac5d7b55e4a4e0f02a166ae22e2c4b449ad4d96b5db19b57fa1
MD5 9fe00c719b6b6032592905aaefe1ed68
BLAKE2b-256 6b27c85cdf8fc8f59643a2ca7cab3bf88e22bbd38d9693fc41d30a0da5713482

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