Skip to main content

Create a Package

A Package defines the structure of a dataset through one or more schemas. A package can be re-used across datasets if they require the same structure.

Add a Package using the Package Construct.

stack.ts
// Update imports to include Package
import { Environment, DynamoDBLocationCapacityMode, Location, Package } from "@stage-tech/depot-cdk";

const sourcePackageImport = require('@your-github-org-name/my-package-source'); // import the NPM package
const sourcePackage = new Package(this, "SourcePackage", sourcePackageImport);

Using Packages

Packages are passed into a Dataset when creating one (see StageDepotDatasetProps).