@epilot/cdk-constructs
TypeScript icon, indicating that this package has built-in type declarations

3.0.16 • Public • Published

cdk-constructs

Reusable CDK Constructs for other epilot microservices to consume

Setup

Add latest package to your project with npm

npm i -D @epilot/cdk-constructs

Start using cdk constructs in your infrastructure definition
Examples

1.Http OpenAPI definition

Summary: It will create Http API V2 resource in API Gateway, Route definitions and 1 lambda integration for each defined route

import { HttpOpenApi } from '@epilot/cdk-constructs'

// ... in your stack definition
const api = new HttpOpenApi(this, 'MyApi', {
    serviceName: 'my-service',
    openApiSpec: './openapi.yml',
    integrations: [
        {
            operationId: 'getEntity', // found in openapi.yml
            handler: 'api.getEntity' // file.method to handle the request
            entry: 'index.ts'
        },
        {
            operationId: 'storeEntity',
            handler: 'api.storeEntity',
            entry: 'index.ts'
        }
    ]
})

Steps for release

  1. npm login (credentials are stored in 1password)
  2. npm run release
  3. npm publish

Package Sidebar

Install

npm i @epilot/cdk-constructs

Weekly Downloads

50

Version

3.0.16

License

MIT

Unpacked Size

974 kB

Total Files

85

Last publish

Collaborators

  • aleksandr.lapushkin
  • manikandan.subramanian
  • jakub.duras.epilot
  • mp-polarsquad
  • mateus.nardo
  • diogo.f.marques
  • praneetro
  • epilot-keremnalbant
  • rossepilot
  • kate.astrid
  • juan.villamizar
  • matheusseabra
  • j.carneiro
  • sebas.sauer
  • wmolinari
  • vladcrishan
  • alexmarqs
  • mohammadjd
  • julian01
  • daniel-bot.epilot
  • a.kedia
  • sureshkumars
  • dusty48
  • paulo.henriques
  • mohannad7
  • epilot-dev-tools
  • nishugoel
  • sumanth.kanakala
  • anttiviljami
  • j.pinho