**AWS lambda **is a service thatlets the user to run code without provisioning or managing servers and the user needs to pay for how much they use. The user can also scale it up and down according to their needs. Terraform is a tool for building, changing, and versioning infrastructure safely and efficiently. It uses Infrastructure as Code to provision and manage any cloud, infrastructure, or service.

AWS API gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor and secure APIs. API acts as a front door for the application to access data, business logic or functionality from the backend services. It handles all the task involved in accepting and processing up of hundreds or thousands of concurrent API calls, including traffic management, authorization, access control, monitoring and API management.

Terraform is a tool for building, changing, and versioning infrastructure safely and efficiently. It uses Infrastructure as Code to provision and manage any cloud, infrastructure, or service. Infrastructure as code is the process of managing and provisioning computer data centers through machine-readable definition files, rather than physical hardware configuration or interactive configuration tools.

Procedure to download terraform

  1. Go to https://www.terraform.io/downloads.html and click on the download link for your operating system.
  2. A zip file will get downloaded. After unzipping it, you will get a file named terraform.exe for windows. Copy this file.
  3. Create a folder named bin in **C:\Users\John\ **and inside C:\Users\John\bin paste terraform.exe.
  4. Go to control panel and open system properties. Then click on Environment variables and under **User variable for John **section, click on **path **and add a new path as C:\Users\John\bin.
  5. To confirm terraform is working or not, open Powershell and run terraform --version , it should display the version of terraform installed.

Note — I like using Linux commands. So, I downloaded Git, with which, Git bash (CLI) was also installed. I have done this entire project with Git bash. Git bash enables you to run Linux commands on windows machine.

#api-gateway #aws #nodejs #aws-lambda #terraform

Deploy Lambda Function and API Gateway using Terraform
1.90 GEEK