Professional Documents
Culture Documents
TF Classnotes
TF Classnotes
TF Classnotes
1. AWS
2. Azure
3. GCP
4. Alibaba
5. Oracle
6. IBM cloud
10 of hunderes of clouds
Ansible:
2. validate->it can validate the user code(.tf file)(check the syntax of DSL)
DSL:
eg:
providerblock "providername"{
provider "aws"{
argument1 = "value1"
....................
argumentn = "valuen"
provider "azure"{
provider "ibm"{
access key:AKIAYLYO7HCX6HI2E3H5
secret key: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
resource
Installation:
->windows:
choco install terraform
->linux
Components of Terraform:
interaction componet
eg: aws,azure,gcp,ibm
-> Resources:is the part of the infrastructure create on the provider.
Every provider provide resources.
eg1:
install terraform
install vscode
provider syntax:
provider 'provider type'
{
argument1 'value1'
}
inputs in terraform as called as arguments
outputs are called as attributes.
provider "aws" {
region = us-east-1
access_key = AKIAYLYO7HCX2MIJU4PR
secret_key = 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
akey:AKIAYLYO7HCXTJICXWZJ
skey:AQ5oz9/mba0Qxw+4t6lA4qAs2LObr2tnVH4w+6y7
cidr_block = "10.0.0.0/16"
instance_tenancy = "default"
tags = {
name = "my-vpc"
}
}