Sveltekit Cdk screenshot

Sveltekit Cdk

Author Avatar Theme by Juranki
Updated: 3 Jul 2023
31 Stars

Tools for deploying SvelteKit to AWS using CDK

Overview

The SvelteKit CDK Adapter is a tooling package that allows users to deploy SvelteKit sites to AWS using CDK (Cloud Development Kit). It consists of two packages: the adapter that integrates with the SvelteKit project, and the constructs that are imported into the CDK project to integrate the SvelteKit site with other parts of the system.

Features

  • SvelteKit CDK Adapter: Plugs into the SvelteKit project and enables the site to be consumed in CDK stacks.
  • SvelteDistribution construct: Bundles and deploys the SvelteKit site to Lambda@Edge and S3, and distributes it with CloudFront.

Installation

To set up the SvelteKit CDK Adapter, follow these steps:

  1. Initialize your SvelteKit project and CDK project.
  2. Add the adapter to your SvelteKit project and point it to the CDK project.
  3. Add the constructs to your CDK project.
  4. Optionally, edit the CDK stacks to connect the site with other resources.
  5. Add a custom domain and certificate.
  6. Adjust capacity allocation as needed.

Note: The SvelteKit CDK Adapter is currently in initial development and its API is not stable. It is recommended to use the exact version specified in the package.json file to avoid compatibility issues.

Summary

The SvelteKit CDK Adapter is a tool that enables the deployment of SvelteKit sites to AWS using CDK. It provides an adapter to integrate the SvelteKit project with CDK stacks and constructs to bundle and deploy the site to Lambda@Edge and S3. However, it is important to note that the tool is currently in initial development and its API is not stable. Users are advised to exercise caution and follow the recommended installation steps to avoid any surprises or compatibility issues.