Skip to main content

CDK Constructs for Serverless Demo

Project description

npm version PyPI version release

cdk-constructs: Experimental

cdk-simple-serverless

Tiny serverless constructs wih all optional construct properties to keep it as simple as possible for demo out of the box.

Install

Use the npm dist tag to opt in CDKv1 or CDKv2:

// for CDKv2
npm install cdk-simple-serverless
or
npm install cdk-simple-serverless@latest

// for CDKv1
npm install cdk-simple-serverless@cdkv1

HelloFunction

AWS Lambda function that returns "Hello CDK!" only.

import { HelloFunction } from 'cdk-simple-serverless'

new HelloFunction(stack, 'Function')

HelloRestApiService

Amazon API Gateway REST API service that returns "Hello CDK!" only in the HTTP response.

import { HelloRestApiService } from 'cdk-simple-serverless'

new HelloRestApiService(stack, 'Service')

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

cdk-simple-serverless-2.0.300.tar.gz (43.2 kB view hashes)

Uploaded Source

Built Distribution

cdk_simple_serverless-2.0.300-py3-none-any.whl (41.8 kB view hashes)

Uploaded Python 3

Supported by

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