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

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

Install

npm i @epilot/cdk-constructs

DownloadsWeekly Downloads

18

Version

3.0.2

License

MIT

Unpacked Size

1.5 MB

Total Files

85

Last publish

Collaborators

  • jani.epilot
  • kate.astrid
  • davidkuda
  • juan.villamizar
  • ahmedzeno
  • matheusseabra
  • m.angel0403
  • j.carneiro
  • sebas.sauer
  • wmolinari
  • mateus.nardo
  • vladcrishan
  • alexmarqs
  • mohammadjd
  • julian01
  • daniel-bot.epilot
  • a.kedia
  • sureshkumars
  • dusty48
  • paulo.henriques
  • mohannad7
  • epilot-dev-tools
  • nishugoel
  • sumanth.kanakala
  • anttiviljami
  • j.pinho