cdk-simple-serverless
v2.0.300
Published
CDK Constructs for Serverless Demo
Downloads
358
Readme
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')