Infrastructure As Code
Infrastructure As Code
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.
Terraform workflow