Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 11

Terraform

Infrastructure As Code
Traditional way to build the infrastructure

2
2
Cloud environment

3
What is Terraform?
• Terraform is an infrastructure as code using HashiCorp.
• Provision and manage all of your infrastructure throughout its lifecycle.
• Terraform can manage low-level components like compute, storage, and networking
resources, as well as high-level components like DNS entries and SaaS features.

4
Benefits Of Terraform

Using Terraform has several advantages over manually managing your


infrastructure:
• Terraform can manage infrastructure on multiple cloud platforms.
• The human-readable configuration language helps you write infrastructure code
quickly.
• Terraforms state allows you to track resource changes throughout your
deployments.
• You can commit your configurations to version control to safely collaborate on
infrastructure

5
How does Terraform work?

Terraform creates and manages resources on cloud platforms and other services
through their application programming interfaces (APIs). Providers enable
Terraform to work with virtually any platform or service with an accessible API.

6
Terraform Providers
• more than 1700 providers to manage grow.
• You can find all publicly available providers on the Terraform Registry, including Amazon Web
Services (AWS), Azure, Google Cloud Platform (GCP), Kubernetes, Helm, GitHub, Splunk, Data
Dog, and many more

7
Terraform Lifecycle
Terraform lifecycle consists of – init, plan, apply, and destroy.

8
Terraform commands
Some of the most useful Terraform commands are:
terraform init - initializes the current directory
terraform Validate – It will validate the code which we have written
terraform plan - a dry run to see what Terraform will do
terraform apply - applies the Terraform code and builds stuff
terraform refresh - refreshes the state file
terraform output - views Terraform outputs
terraform destroy - destroys what has been built by Terraform

9
Prerequisites
Below SDK and plugins needs to be Install.
Install Command-Line Interface
https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-windows?
tabs=azure-cli
Install Terraform on your local computer
https://learn.hashicorp.com/tutorials/terraform/install-cli
Install Visual Studio Code
https://code.visualstudio.com/docs/setup/windows

10
THANK YOU

© Copyright 2020 Datamatics Global Services Limited and its subsidiaries (hereinafter jointly referred as Datamatics). All rights reserved.
 
Contents in this document are confidential and proprietary to Datamatics. No part of this document should be reproduced, published, transmitted or distributed in any form or by any means, electronic, mechanical, photocopying,
recording or otherwise, nor should be disclosed to third parties without prior written approval from the marketing team at Datamatics.

You might also like