Skip to content

Instantly share code, notes, and snippets.

@gcchaan
gcchaan / cfn-athena-template.yml
Created September 2, 2019 01:36
Cloudformation template of Athena
AWSTemplateFormatVersion: "2010-09-09"
Description: Athena Stack
Resources:
GlueDatabase:
Type: AWS::Glue::Database
Properties:
CatalogId: !Ref 'AWS::AccountId'
DatabaseInput:
Description: for athena
Name: gcchaan_database
@gcchaan
gcchaan / lambda-api-local.ts
Last active May 11, 2023 02:02
Local server for testing lambda-api
/**
* refs. https://github.com/jeremydaly/lambda-api/issues/53#issuecomment-450578262
*/
import { api } from "./src/app";
import {
APIGatewayProxyEventV2,
APIGatewayEventRequestContextV2,
APIGatewayProxyEventHeaders,
Context,