🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@serverless-stack/resources

Package Overview
Dependencies
Maintainers
3
Versions
823
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@serverless-stack/resources

Helper AWS CDK constructs for SST apps.

1.18.4
latest
Source
npm
Version published
Weekly downloads
1.9K
-20.3%
Maintainers
3
Weekly downloads
 
Created
Source

@serverless-stack/resources npm

The @serverless-stack/resources package provides a set of additional CDK constructs necessary to build an SST app.

View the @serverless-stack/resources docs here.

Installation

This package is usually installed together with @serverless-stack/cli.

# With npm
$ npm install @serverless-stack/cli @serverless-stack/resources --save-exact
# Or with Yarn
$ yarn add @serverless-stack/cli @serverless-stack/resources --exact

Note that, the version of these packages should be kept in sync.

Importing constructs

You can either import specific constructs in your app.

import { Api } from "@serverless-stack/resources";

Or import them all.

import * as sst from "@serverless-stack/resources";

Types of constructs

SST comes with a two types of constructs.

Low-level

These either extend or replace the native CDK constructs.

  • App
  • Stack
  • Function

Higher-level

These are higher level abstractions that wrap around multiple constructs to serve specific use cases.

FAQs

Package last updated on 24 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts