jorgebastida / gordon

λ Gordon is a tool to create, wire and deploy AWS Lambdas using CloudFormation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Recommended way to deploy existing lambda to a new region, or multi-region support

smoll opened this issue · comments

I've been reading the docs and see a lot of references to default-region but nothing indicating how to do multi-region.

To use a simple example, if I deployed https://github.com/jorgebastida/gordon/tree/master/examples/simplepython for the first time with a region of eu-west-1, what steps should I take to deploy the exact same lambda to us-east-1?

My first instinct would be to copy and paste the entire project dir and change the default-region, but that feels wrong (or is it fine? since we need to create CF resources in the new region). What if a lambda in one region wanted to interact with an AWS resource in another region; is that supported at all?