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
import cdk = require('@aws-cdk/core');
import * as cognito from '@aws-cdk/aws-cognito'
import { SignInType, UserPoolAttribute } from '@aws-cdk/aws-cognito';
export class SailingdayStack extends cdk.Stack {
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) {
super(scope, id, props);
const userPool = new cognito.UserPool(this, id + 'Pool', {
signInType: SignInType.EMAIL,
@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,