Concepts of Terraform
- Provider:
- Provider in terraform is the destination where the resources are supposed to be created.
- Refer Here for all the providers
- Resource:
- Resource in terraform refers to the infrastructure to be created

- Resource in terraform refers to the infrastructure to be created
- Arguments:
- inputs are referred as arguments
-
Attributes
- outputs are referred as attributes
- Sample terraform for Azure
provider "azurerm" {
features {
}
}
resource "azurerm_storage_account" "test" {
name = "test"
resource_group_name = "test"
}
- Sample terraform for Aws
provider "aws" {
region = "us-west-2"
}
resource "aws_s3_bucket" "my" {
bucket = "idontknowltagain"
}
Setting up Terraform
-
Softwares:
- Windows:
- Terminal
- Git Bash
- Chocolatey Refer Here
- Mac:
- Homebrew Refer Here
- Git
brew install git - Visual Studio code:
brew install --cask visual-studio-code
- Visual Studio Code
-
AWS CLI
- mac
brew install awscli - windows
choco install awscli -y
- mac
-
Azure CLI
- mac
brew install azure-cli - windows:
choco install azure-cli -y
- mac
- Terraform Refer Here
- windows
choco install terraform -y
- windows
- Refer Here for video to setup your workstation.
- Windows:
