New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

cdk-ez

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cdk-ez

Zero-config easy AWS CDK serverless development

latest
npmnpm
Version
0.5.4
Version published
Maintainers
1
Created
Source

CDK-EZ - AWS CDK the easy way

This package is a single-dependency project starter for TypeScript-based AWS CDK projects.

Features

  • Outputs a single javascript file per lambda handler file via cdk-ez build
  • Bundles and treeshakes your code with Rollup
  • ESLint configuration with sensible defaults (including prettier) via cdk-ez lint and cdk-ez lint --fix
  • Jest test runner via cdk-ez test
  • A quick-start command to create a ready-to-run project npx cdk-ez init <dir>
  • Works great with Visual Studio code (hint: Install the ESLint and TypeScript extensions!)

Quick Start

npx cdk-ez init mycdk
cd mycdk
npm run start

And now your code will live-rebuild. The quick start template includes a working REST API, so you can immediately deploy it:

$ npx cdk deploy

MyStack: deploying...

...

Outputs:
MyStack.endpointDynamic = https://aaaaaaaaaa.execute-api.region.amazonaws.com/prod/say/{say}
MyStack.endpointStatic = https://aaaaaaaaaa.execute-api.region.amazonaws.com/prod/hello
MyStack.apiEndpoint9349E63C = https://aaaaaaaaaa.execute-api.region.amazonaws.com/prod/

Stack ARN:
arn:aws:cloudformation:ca-central-1:000000000000:stack/MyStack/00000000-0000-0000-0000-000000000000

You can use the newly deploy hello world API resource by accessing the MyStack.endpointStatic output shown.

FAQs

Package last updated on 09 Jan 2020

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