Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@epilot/cdk-constructs

Package Overview
Dependencies
Maintainers
0
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@epilot/cdk-constructs

CDK reusable constructs for building epilot microservices

  • 4.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
156
decreased by-49.19%
Maintainers
0
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 19 Sep 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc