Terraform Asssignment Basic Questions

Write a answer for following questions in your words the comment section below;

What is Terraform and Why do we need it?
What are the Top 10 Use cases of Terraform?
What is the Terraform providers?
How to download Terraform Providers? Example Code?
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

8 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Sinu Alex
Sinu Alex
6 months ago

Terraform is an Infrastructure Code which is used to automate many Infrastructure tasks.
We can use Terraform to build; destroy resources in various cloud providers, such as in Azure and AWS in our scenario.
Terraform providers are certified vendors which provides API to access there platform, so that terraform code we create can do it job.
We can use the provide template and keep it under a project directory, and run the terraform init command from command line which will then reads the provider file and install the provider.
Example code:
terraform {
required_providers {
azurerm = {
source = “hashicorp/azurerm”
version = “3.75.0”
}
aws = {
source = “hashicorp/aws”
version = “5.20.0”
}
}
}

provider “azurerm” {
# Configuration options
}

provider “aws” {
# Configuration options
}

Anwar K
Anwar K
6 months ago

What is Terraform and Why do we need it?
Terraform simplifies deployment of codes/application without the need to manually translate codes into respective providers’ language.

What are the Top 10 Use cases of Terraform?
AWS security profile update
AWS vpc deployment
Azure NSG update
Azure vnet deployment
Azure pipeline creation

What is the Terraform providers?
Azure
AWS
GCP
Kubernetes
Alibaba
OCI

How to download Terraform Providers? Example Code?
terraform {
 required_providers {
   azurerm = {
     source = “hashicorp/azurerm”
     version = “3.75.0”
   }
 }
}
 
provider “azurerm” {
 # Configuration options
}

Joe
Joe
6 months ago

What is Terraform and Why do we need it?
IAC tool. to automate infrastructure component

What are the Top 10 Use cases of Terraform?
Compute deployment on Cloud
Kubernetes
Policy Management
Software Defined Networking

What is the Terraform providers?
API plugin interface to interact with Terraform

How to download Terraform Providers? Example Code?
Use provider code in providers.tf file

Eg:

terraform {
 required_providers {
   azurerm = {
     source = “hashicorp/azurerm”
     version = “3.75.0”
   }
 }
}

provider “azurerm” {
 # Configuration options
}

Joe
Joe
6 months ago

What is Terraform and Why do we need it?
IAC tool. to automate infrastructure component

What are the Top 10 Use cases of Terraform?
Compute deployment on Cloud
Kubernetes
Policy Management
Software Defined Networking

What is the Terraform providers?
API plugin interface to interact with Terraform

How to download Terraform Providers? Example Code?
Use provider block in providers.tf file

Eg:

terraform {
 required_providers {
   azurerm = {
     source = “hashicorp/azurerm”
     version = “3.75.0”
   }
 }
}

provider “azurerm” {
 # Configuration options
}

Wee
Wee
6 months ago

1. Allow users to automate infrastructure provisioning using reusable, shareable, human-readable configuration files
2. multi cloud deployment, microservices infra, managing diverse cloud resoruces, monitoring tools, self-service cluster, policy compliance, kubernetes,
3. A plugin that enable interaction with API
4. terraform {
required_providers {
azurerm = {
source = “hashicorp/azurerm”
version = “3.75.0”
}
aws = {
source = “hashicorp/aws”
version = “5.20.0”
}
}
}

provider “azurerm” {
# Configuration options
}

provider “aws” {
# Configuration options
}

Norazim Azani
Norazim Azani
6 months ago

What is Terraform and Why do we need it?

  • terraform to simplifies the deployment via IaaS

What are the Top 10 Use cases of Terraform?

  • create any resources in cloud providers (VM, network, private endpoint, logic apss and etc..

What is the Terraform providers?

  • its a plugin we use to enable integration with the cloud API

How to download Terraform Providers? Example Code?

Sam
Sam
6 months ago

What is Terraform and Why do we need it?Terraform is an IAS code tool where we can write code in Go language for create, delete and update the cloud and onprem resources. We can reuse the code and deploy resources multiple times.
Advantages:

Code reusable / AutomationUsing same code deploy multiple resourcessave time2. What are the Top 10 Use cases of Terraform?

Automate Azure cloud resourcesEx: Resource group, Storage account, AAD groups, VM’s, Web applications, DB resources

Automate CI/CD pipelines for continuous deploymentAutomate AWS resourcesAutomate K8S resources Ex: Create namespace, Automate K8S pipelines for continuous deployment3.What is the Terraform providers?

Terraform provider is plugin where it will interact with cloud or onprem providers API

4.How to download Terraform Providers? Example Code?

Terraform official documentation.
Install | Terraform | HashiCorp Developer
Dowload AMD64 on your local machine and set env variables
hashicorp/azurerm | Terraform Registry
terraform {
 required_providers {
  azurerm = {
   source = “hashicorp/azurerm”
   version = “3.75.0”
  }
 }
}

provider “azurerm” {
 # Configuration options
}

Last edited 6 months ago by Sam
Tan Lee Na
Tan Lee Na
6 months ago

1. Terraform making it easier to define, provision, and maintain resources across various cloud providers and environments.

2. 
-Provisioning Cloud Resources
-Infrastructure Automation
– Multi-Cloud Management
-Scalability and Elasticity
– Network Infrastructure

3. a plugin that enables interaction with an API. This includes Cloud providers and Software-as-a-service providers. The providers are specified in the Terraform configuration code. 

4. How to download Terraform Providers? Example Code?

terraform init

terraform {
 required_providers {
  azurerm = {
   source = “hashicorp/azurerm”
   version = “3.75.0”
  }
aws = {
   source = “hashicorp/aws”
   version = “5.20.0”
  }
 }
}

provider “azurerm” {
 # Configuration options
}

provider “aws” {
 # Configuration options
}

8
0
Would love your thoughts, please comment.x
()
x