Skip to content

Instantly share code, notes, and snippets.

View saybou's full-sized avatar
🙏
Each one teach one

Sébastien Poyer saybou

🙏
Each one teach one
View GitHub Profile
@saybou
saybou / IAM.json
Created May 26, 2020 08:58
default IAM policy for serverless-typescript-aws
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"cloudformation:CreateStack",
"cloudformation:DeleteStack",
"cloudformation:DescribeStacks",
@saybou
saybou / handler.ts
Created May 26, 2020 08:55
default handler function for serverless-typescript-aws
import { APIGatewayProxyHandler, APIGatewayEvent, Context, Callback } from 'aws-lambda';
import 'source-map-support/register';
export const hello: APIGatewayProxyHandler = async (
event: APIGatewayEvent,
context: Context,
callback: Callback,
): Promise<any> => {
return {
statusCode: 200,
@saybou
saybou / .eslintrc.js
Created May 26, 2020 08:49
default eslint configuration for serverless-typescript-aws
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
env: {
node: true,
},
parser: '@typescript-eslint/parser',