Skip to content

Instantly share code, notes, and snippets.

View abrgr's full-sized avatar

Adam Berger abrgr

View GitHub Profile

Keybase proof

I hereby claim:

  • I am abrgr on github.
  • I am abrgr (https://keybase.io/abrgr) on keybase.
  • I have a public key whose fingerprint is A3BA E9CF B812 5151 4DD0 91A5 DFCD AD9F B64F 7104

To claim this, I am signing this object:

@abrgr
abrgr / nodejs-lambda-construct.ts
Last active October 1, 2023 20:47
Using turborepo to build minimal lambdas with CDK
import * as path from "path";
import * as cdk from "aws-cdk-lib";
import {
Function as LambdaFunction,
IFunction,
Runtime,
Code,
} from "aws-cdk-lib/aws-lambda";
import { Construct } from "constructs";
import { BundlingOutput, Duration } from "aws-cdk-lib";
@abrgr
abrgr / gist:909c118ddd5d563f43151bc870a75a53
Last active October 12, 2023 14:28
Api Gateway with Lambda Handler
import * as path from "node:path";
import * as cdk from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as nlambda from "aws-cdk-lib/aws-lambda-nodejs";
import * as lambda from "aws-cdk-lib/aws-lambda";
import * as apigw from "@aws-cdk/aws-apigatewayv2-alpha";
import * as apigwIntegrations from "@aws-cdk/aws-apigatewayv2-integrations-alpha";
import * as route53 from "aws-cdk-lib/aws-route53";
import * as route53Targets from "aws-cdk-lib/aws-route53-targets";
import * as cert from "aws-cdk-lib/aws-certificatemanager";