Giter Site home page Giter Site logo

nsriram / lambda-the-terraform-way Goto Github PK

View Code? Open in Web Editor NEW
1.2K 29.0 102.0 125 KB

AWS Lambda using Terraform., an Introductory Cookbook

License: MIT License

Markdown 96.10% JavaScript 2.22% JSON 1.68%
awslambda aws terraform devops infrastructure-as-code

lambda-the-terraform-way's Introduction

AWS Lambda the Terraform Way

The objective of this tutorial is to understand AWS Lambda in-depth, beyond executing functions, using Terraform. This tutorial walks through setting up Terraform, dependencies for AWS Lambda, getting your first Lambda function running, many of its important features & finally integrating with other AWS services.

Terraform

Terraform will be the primary medium of demonstrating all these examples. Terraform is an infrastructure as code software that helps in managing resources in cloud, by various providers like AWS, GCP, Azure etc., Terraform enables creation of infrastructure by writing code in a declarative form.

Target Audience

Target audience for this tutorial series are developers with basic knowledge of Terraform. A little background on understanding of serverless technologies, infrastructure as code will help.

Note : The tutorial will not discuss examples using the AWS website UI (or) with AWS SDK.

Tutorials

  1. Serverless Introduction
  2. Prerequisites and Setup
  3. Terraform Overview
  4. IAM Account For Tutorial
  5. Hello World - Your First Lambda
  6. Packaging With Dependencies
  7. Lambda Layers
  8. Integrate with S3
  9. Integrate with Kinesis
  10. Integrate with DynamoDB
  11. Integrate with SQS
  12. Integrate with APIGateway
  13. Tear down

Let's Get Started: Serverless Introduction

References (external)

lambda-the-terraform-way's People

Contributors

alexellis avatar nsriram avatar timcondit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lambda-the-terraform-way's Issues

serverless.tf and more

Hi Sriram,

Thanks for putting it all together in large comprehensive documents. Doing serverless with Terraform is way too hard and should be easier if you need to do more than just hello-world, and it is a really great idea to break the journey down into pieces.

The thing which I wanted to propose (in a rather inappropriate way, I know!), was to mention alternative projects Terraform users may benefit from:

PS: I apologize for the initial marketing spam (initial text of this issue). Make this a marketing spam was certainly not my goal.

Typo

Here, the lambda-tf-bucket corresponds to a local name that can be used for referencing in terraform code. The actual bucket will be created with name lambda-tf-tutorial-bucket.

I think that should be “the aws_s3_bucket”.

Document keybase steps

Hi, thanks for the great tutorial.

I got a bit stuck on the initial setup, having never heard of keybase before (and still not really understanding what it is). I eventually got it working through the following steps:

  • Install keybase (duh)
  • Create an account
  • Open up the People tab, go to Edit Profile
  • Click "Add pgp key"
  • Input fake email
  • Generate the key
  • Close keybase (but DO NOT log out)

Now when running terraform apply, the keybase_id to give is your keybase username. As I understand it, terraform will query your local keybase install and get a pgp key from it.

It might be useful to add these steps to the tutorial - either way, hopefully this issue will help others.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.