Got it

Terraform; An introduction

Latest reply: Jul 26, 2022 10:51:33 607 12 6 0 0

Terraform:

Terraform by HashiCorp is an infrastructure as code solution that allows you to specify cloud and on-premise resources in human-readable configuration files that you can reuse and share. Then, throughout the lifecycle of your infrastructure, you can utilize a consistent methodology to provide and manage it. It is written in the Go programming language.

tararr


Terraform utilizes application programming interfaces to construct and manage resources on cloud platforms and other services (APIs). Terraform is able to interact with practically any platform or service that has an accessible API through the use of providers.

terr


IAC:

There are different infrastructures that we have learned but this one is unique and very useful because it includes everything you do with your servers, network devices, databases, applications, automated tests, and deployment process should be written down in code. This is called Infrastructure as Code (IaC). This consists of every stage of your infrastructure lifecycle, starting from defining, deploying, updating, and destroying. The main benefit of defining every resource as an IaC is that you can now keep track of it, reuse it, validate it, and build a self-service model in your company.



How it is distinctive from other tools?

It is Different from other tools for quite some reasons few of them are presented here

Infrastructure provisioning:

Terraform is used to provision infrastructure, while Ansible, Chef, and Puppet are configuration management tools (used to push/pull configuration changes). In contrast, you can use Terraform to run configuration scripts and configuration management to build infrastructure, but this is not optimal. The preferable method is to utilize them in tandem, for example, using Terraform to build infrastructure and then using Puppet to customize that infrastructure.

Immutable infrastructure:

The next major distinction is between mutable and immutable infrastructure. Terraform generates immutable infrastructure, which means that every time you use it to make changes, it creates a new resource. Changes pushed using Puppet, on the other hand, will update the existing software version, resulting in configuration drift in the long run.

Open-source tool:

Another distinction is open source vs. proprietary; Terraform is an open-source tool that works with practically all major providers, but proprietary tools like CloudFormation are dedicated to AWS.

 

Not just Configuration management:

Many other tools in the category are just Configuration management tools but you can create the infrastructure using terraform

 

 

Conclusion:

Terraform code is written in the HCL programming language and stored in.tf files. Because Terraform is a declarative language, your goal is to define the infrastructure you want, and it will figure out how to build it. Terraform is capable of building infrastructure on a wide range of platforms and providers so it is also good to work with Huawei.

 

 

 

 References:

https://www.terraform.io/intro

https://www.oreilly.com/library/view/terraform-up-and/9781491977071/ch01.html

https://pactflow.io/blog/terraform/


  • x
  • convention:

Saqib123
Created Apr 23, 2022 12:22:40

Thanks for Sharing
View more
  • x
  • convention:

MahMush
MahMush Created Apr 25, 2022 12:46:11 (0) (0)
Glad you liked it  
zaheernew
MVE Author Created Apr 23, 2022 12:28:07

useful info
View more
  • x
  • convention:

MahMush
MahMush Created Apr 25, 2022 12:47:01 (0) (0)
Will be sharing more on the topic soon  
SamB
Created Apr 23, 2022 12:43:19

learned something new, thanks
View more
  • x
  • convention:

MahMush
MahMush Created Apr 25, 2022 12:51:58 (0) (0)
That is great to know will keep on learning together..  
wissal
MVE Created Apr 23, 2022 13:44:55

Important content
View more
  • x
  • convention:

MahMush
MahMush Created Apr 25, 2022 12:53:07 (0) (0)
Terraform is a good infrastructure as code  
NTan33
Created Apr 24, 2022 04:23:29

Something worth looking into.
View more
  • x
  • convention:

MahMush
MahMush Created Apr 25, 2022 12:54:51 (0) (0)
Reusability of all the architecture is one of the features  
MahMush
Moderator Author Created May 12, 2022 18:44:32

Terraform uses declarative configuration to define the intended final state rather than imperative commands to provision resources. Terraform will undertake CRUD operations on behalf of the user to achieve the required state once a user runs Terraform on a particular resource. Code for the infrastructure can be written as modules, allowing for reusability and maintainability.
View more
  • x
  • convention:

xianxian
Created Jul 26, 2022 10:51:33

Thanks for your sharing!

What is Terraform?

View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.