Skip to content

Instantly share code, notes, and snippets.

@willings
willings / email-proxy-stack.ts
Created July 18, 2020 07:15
CloudFormation template for Forwarding personal domain emails to Gmail
import * as s3 from '@aws-cdk/aws-s3';
import * as iam from '@aws-cdk/aws-iam';
import * as lambda from '@aws-cdk/aws-lambda';
import * as ses from '@aws-cdk/aws-ses';
import * as sesActions from '@aws-cdk/aws-ses-actions'
import * as logs from '@aws-cdk/aws-logs'
import * as cdk from '@aws-cdk/core';
export class EmailProxyStack extends cdk.Stack {
constructor(scope: cdk.App, id: string, props?: cdk.StackProps) {
@willings
willings / README.md
Created June 12, 2016 12:00
StackOverflow login handler for AWS lambda

StackOverflow login handler for AWS lambda

Setup Steps

  1. Create a workspace on your local, and prepare python lib if not included in AWS sdk pip install requests -t your_workspace_path

    For mac user, you may need to add a setup.cfg file to fix error.

  2. Copy script of lambda_function.py, do remember to change username/email settings.

  3. zip contents (including dependency lib, e.g. requests here), pay attention to the root should be current path.

  4. Sign up AWS on your region (it's free for first 1-million lambda call per month, perhaps enough for you). Vist lambda in products or here's a fast link.

  5. Create function as following: