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

4.0.6 • 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

248

Version

4.0.6

License

MIT

Unpacked Size

2.43 MB

Total Files

1139

Last publish

Collaborators

  • daniel-bot.epilot
  • sumanth.kanakala
  • julian01
  • danuta.ludwikowska
  • anttiviljami
  • j.pinho
  • praneetro
  • sureshkumars
  • paulo.henriques
  • diogo.f.marques
  • a.kedia
  • sebas.sauer
  • nishugoel
  • epilot-dev-tools
  • alexmarqs
  • mohannad7
  • dusty48
  • rossepilot
  • vladcrishan
  • wmolinari
  • j.carneiro
  • jakub.duras.epilot
  • julian.maurer
  • manikandan.subramanian
  • mp-polarsquad
  • aleksandr.lapushkin
  • berni-epilot
  • mateus.nardo
  • gokul.kalaikovan.epilot
  • epilot-keremnalbant
  • jpcbarros
  • karl.epilot
  • priit.parna
  • thisisernesto
  • epilot.ernesto
  • epilot-blomqma
  • kate.astrid
  • sebasavram
  • flavius_am
  • giuseppe.silletti-epilot
  • kshitij.saxena.epilot
  • relequestual