0% found this document useful (0 votes)
10 views6 pages

Infrastructure As Code

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views6 pages

Infrastructure As Code

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Infrastructure as code

Azure ARM templates  Json/bicp –DSL


AWS cloud formation  Json
GCP deployment manager  json

Terraform  Yaml script


Ansible  agent less
Pulumi
Cheff agent based
Puppet  agent based
Saltlake  agent based
Helm
Incremental mode ARM, cloud formation or deployment manager, for example if anyone have 5
VM’s and if you want add one more VM then that is called as incremental mode it means without of
existing VM’s and adding one more.

Complete mode  terraform for example if you want add 6th VM then that is called as complete
mode it means it delete the all existing VM’s(resources) and it will create one file with 6
MV’s(resources).

Mutable Infrastructure: whenever need to deployment or patching the server like upgradation then
it requires downtime that this called a Mutable Infrastructure.

Immutable Infrastructure:

Terraform completely as immutable and based on state of storage It means current state of VM’s
(prod and mirror server)
Terraform as the ability to deploy the infra and do the sub configuration changes, like web apps with
define sub folders but ansible will do only configurations. That is the reason therefrom is more
popular then ansible.

Installation of terraform
1. Install MS visual studio code
2. And extension install Support tools.
3. Need to setup in local machine.
4. Download terraform software from terraform.io/download 386
5. Do not run the exe file in local machine
6. Create a folder and put that exe file
7. Go to system Env variables and follow the screen shots
8. After that open CMD and type terraform
9. Once done, we need to plugin the visual studio code with terraform exe.
10. Open folder path in visual studio code and add terraform exe file.
11. We need to add provide details before setup the configuration.

# We strongly recommend using the required_providers block to set the


# Azure Provider source and version being used
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "=3.0.0"
}
}
}
Service principal details will recognise or authenticate from local machine to azure subscription.

Terraform workflow

Init: init means initialization of terraform.


Init used to initialization of the working directory which contains the configuration files.

You might also like