2. Terraform Providers and Module and AWS Setup

Coder Singh
1 min readAug 12, 2021

--

In this tutorial, we will be talking about what are Terraform providers and modules and how we can set up AWS providers in Terraform?

Providers

Providers are nothing but plugins of Terraform. Providers add the capability to talk to different resources. As we can see there are multiple providers here like AWS, GCP, Azure, and many more. Using these providers we can talk to one or all of them from one script.

Modules

Module is a code that we can reuse. It is just like npm package in node. We will see how to make our own modules in future videos.

Let’s create our first terraform file and download AWS Provider. To do it we need to write this code: https://registry.terraform.io/providers/hashicorp/aws/latest/docs

terraform { 
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
}
}
}

We need to run the following command to download the AWS Terraform provider:

terraform init

If you have doubts, want career advice, want help with assignments, help at a job, or anything related to tech. Connect with me on a video/audio call:

15 mins(Free): https://bit.ly/3rNsoYA
15 mins($7): https://bit.ly/3rJ45Ls
30 mins($49): https://bit.ly/3xgBle4
60 mins($79): https://bit.ly/3zXMwKq
Instagram: https://bit.ly/2V9mgyf
Youtube Channel: https://bit.ly/3zYCzMS
Discord: https://bit.ly/3lp5gyp
Twitter: https://bit.ly/37gdK2J
Medium Blog: https://bit.ly/2V8GUhX

--

--

Coder Singh

I am a YouTuber and a blogger who loves technology.