2. ~$ whoami~$ whoami
● I used to be a Molecular Biologist,I used to be a Molecular Biologist,
● Then became a Dev,Then became a Dev,
● Now an Ops.Now an Ops.
● Open Source Consultant @Open Source Consultant @inuits.euinuits.eu
4. HCLHCL
● Hashicorp Configuration LanguageHashicorp Configuration Language
● Yet another cfgmgmt DSLYet another cfgmgmt DSL
● Desired stateDesired state
11. Terraform.tfvarsTerraform.tfvars
The 'terraform.tfvars' files will need to have severalThe 'terraform.tfvars' files will need to have several
variables set to be able successfully connect to azure.variables set to be able successfully connect to azure.
arm_client_id = "xxxxxxxxx"arm_client_id = "xxxxxxxxx"
arm_client_secret = "xxxxxxxxx"arm_client_secret = "xxxxxxxxx"
arm_subscription_id = "xxxxxxxxx"arm_subscription_id = "xxxxxxxxx"
arm_tenant_id = "xxxxxxxxx"arm_tenant_id = "xxxxxxxxx"
resource_group_name = "euw1-mgmt-rg-deploy"resource_group_name = "euw1-mgmt-rg-deploy"
storage_account_name = "euw1mgmtsadeploy"storage_account_name = "euw1mgmtsadeploy"
container_name = "euw1-mgmt-sc-remote-state"container_name = "euw1-mgmt-sc-remote-state"
key = "mgmt.azure.tfstate"key = "mgmt.azure.tfstate"
17. Terraform planTerraform plan
● Will go out the $provider get the stateWill go out the $provider get the state
● Compare the state and will tell you if and whatCompare the state and will tell you if and what
will be changedwill be changed
● Be aware changes can be PATCH or DELETEBe aware changes can be PATCH or DELETE
and PUTand PUT
18. Terraform applyTerraform apply
● Where the sausage get made.Where the sausage get made.
● Will fail on error and will tell the operator to go fixWill fail on error and will tell the operator to go fix