Documentation

Use env vars to pass operational parameters to your function: Don't hardcode things like queue names or table names even if they are the same across your accounts. This makes the reader understand dependencies easier

Documentation

Experiment with the console first, then generate the templates/snippets: The Lambda designer helps you do things right and the Cloud9 IDE is great for prototyping. When done experimenting, generate the CloudFormation equivalent accurately to automate further deployments