DevOps (Day: 61) Terraform Commands
Terraform Commands Command.

DevOps (Day: 61) Terraform Commands

Dear Learners, Today topic on Terraform Commands form basics to Advanced.

TABLE OF CONTENTS

Task-01 Terraform Commands

Task-01

Find purpose of basic Terraform commands which you'll use often

No alt text provided for this image

1 Terraform init:

Initializes a new or existing Terraform working directory by downloading the required provider plugins and sets up the backend to store the state. This command must be run before any other Terraform command is executed.

No alt text provided for this image
Terraform init Diagram.

2 Terraform init-upgrade:

Upgrades the configuration to the latest version of Terraform. This is useful if you have upgraded your Terraform version and want to ensure that your configuration is compatible with the new version.

3 Terraform plan:

No alt text provided for this image
Terraform plan
No alt text provided for this image
Terraform plan Diagram.

Shows the changes that Terraform will make to the infrastructure to bring it into the desired state,without actually making the changes. This is useful to see what changes terraform will make before actually applying them.

4 Terraform apply:

No alt text provided for this image
Terraform apply Diagram
No alt text provided for this image
Terraform apply Diagram

Applies the changes to the infrastructure described in the Terraform configuration files. This command will create,modify,or delete resources as needed to bring the infrastructure into the desired state.

5 Terraform Validates:

Validates the syntax and structure of the Terraform configuration file. This command checks for errors, missing required arguments and other issues.

6 Terraform fmt:

No alt text provided for this image
Terraform fmt Diagram.

Rewrites terraform Configuration files to a canonical format, Which makes it easier to read and manintain.

7 Terraform destroy:

No alt text provided for this image
Terraform Destroy Diagram.

Destroys all the infrastructure created by Terraform, freeing up the resources and ensuring that you are not paying for unused infrastructure. This command should be used with caution as it will delete all the resources described in the configuration file.

What are the main competitors of Terraform?

AWS Cloud Formation:

No alt text provided for this image
AWS Cloud Formation Diagram.

AWS CloudFormation is an IaC tool provided by Amazon web Services (AWS). It allows users to define and manage infrastructure resources in a declarative way using JSON or YAML templates. CloudFormation supports a wide range of AWS services and is tightly integrated with other AWS tools and services.

Ansible:

No alt text provided for this image
Ansible Diagram.

Ansible is an open-source tool that uses YAML scripts to define and manage infrastructure resiurces. Ansible can be used for provisioning, configuration management and application deployments across multiple platforms and cloud providers.

Kubernets:

No alt text provided for this image
Kubernetes Diagram,

Kubernetes is another IT automation alternative to Terraform. It is an open-source solution that enables automated deployment,management,and scaling of containerized application. It simplifies containerized applications. It simplifies container communication. It facilitated container discovery and management with an application.

Puppet:

No alt text provided for this image
Puppet in DevOps Diagram,

Puppet is an another open-source IaC tool that uses a declarative language to define and manage infrastructure resource. Puppet has a large community of users and contributors and supports a wide range of platforms and the cloud providers.

Chef:

No alt text provided for this image
Chef Architecture Diagram.

Chef is an open-source IaC tool that uses Ruby scripts to define and manage infrastructure resources. Chef is particularly well-suited for managing large-scale infrastructure and supports a wide range of platforms and cloud providers.

Packer:

No alt text provided for this image
Packer Diagram.

Packer create identical machine images for the multiple platforms from a single resource configuration. A common use case is creating golden images for organisations to use in cloud infrastructure.

Cloud Foundry:

No alt text provided for this image

Cloud Foundry is an open source cloud application platform that makes it faster and easier to build test, deploy and scale apps in your choice of cloud,framework and language. Remove the cost and complexity associated with configuring, managing and securing infrastructure for your app with Cloud Foundry.

Hope I helped you in understanding the concept in a better way!!

Happy Learning!!


Next Topic

Day 62: Blocks and Resources used in Terraform.

Harshitha Harsh

?I help Businesses Upskill their Employees in DevOps | DevOps Mentor & Process Architect

1 年

Thank you, Maninder Singh, for sharing such an informative article on Terraform Commands and helping us enhance our knowledge in the field of DevOps. Looking forward to more such insightful posts from you. Keep up the good work

Divyansh SHARMA

DevOps/Cloud Engineer || AWS || AZURE || Linux || Gitlab || Jenkins || Docker || Networking || Microsoft Certified: Azure Administrator Associate |

1 年

Great article on Terraform commands! It's essential to understand its competitors and the various commands to make maximum use of the tool. Thanks for sharing this informative post. #DevOps #Terraform #Automation.

Sayali Jadhav

DevOps Engineer at BH Mobile Pte Ltd || AWS || Linux || CICD || Jenkins || Git GitHub || Docker || Kubernetes || Terraform ||

1 年

Great share Maninder Singh

Maninder Singh

AWS || Networking || Docker || Mentor & Tutor || System Engineer Antier Solution

1 年

++

回复

要查看或添加评论,请登录

Maninder Singh的更多文章

  • Artificial Intelligence for DevOps Engineer

    Artificial Intelligence for DevOps Engineer

    Dear learners, In today article we will explain the Artificial Intelligence for the DevOps Engineers. Important Aspects…

    12 条评论
  • Bash Shell Scripting:- Lesson 7,8 &9 for DevOps Engineers.

    Bash Shell Scripting:- Lesson 7,8 &9 for DevOps Engineers.

    Dear Learners, In Today Topic, We will learn the Shell Scripting form Basics to Advanced for DevOps Engineers. Course…

    3 条评论
  • Bash Shell Scripting:- Lesson 4,5 &6 for DevOps Engineers.

    Bash Shell Scripting:- Lesson 4,5 &6 for DevOps Engineers.

    Dear Learners, In Today Topic, We will learn the Shell Scripting form Basics to Advanced for DevOps Engineers. Course…

    3 条评论
  • Bash Shell Scripting:- Lesson 1,2 &3 for DevOps Engineers.

    Bash Shell Scripting:- Lesson 1,2 &3 for DevOps Engineers.

    Dear Learners, In Today Topic, We will learn the Shell Scripting form Basics to Advanced for DevOps Engineers. Course…

    3 条评论
  • EP 2 DevOps:- 2 Tier Application Deployment

    EP 2 DevOps:- 2 Tier Application Deployment

    2-Tier Application Deployment Diagram (Architecture) Dear Learners in today topic we will deploy a 2 Tier Application…

    8 条评论
  • DevOps Engineers:- Docker Cheat Sheet

    DevOps Engineers:- Docker Cheat Sheet

    Dear learner, presented below is a concise yet comprehensive Docker cheat sheet, complete with detailed commands and…

    7 条评论
  • DevOps (Day-90): Ending the challengs

    DevOps (Day-90): Ending the challengs

    Table of Contents: Flashback Self-Impact of Learning Today, We have completed the 90days of DevOps challenge where we…

    16 条评论
  • DevOps (Day-88): Kubernetes Architecture

    DevOps (Day-88): Kubernetes Architecture

    Dear Learner's in today topic we will discuss the Kubernetes Architecture in detail. Table of Contents Kubernetes…

    1 条评论
  • DevOps (Day-87): Argo CD

    DevOps (Day-87): Argo CD

    Dear Learners in today topic we will the discuss the Argo CD in Kubernetes. Table of Contents Challenges with CD into…

    13 条评论
  • DevOps (Day-86): Project-7 Portfolio App

    DevOps (Day-86): Project-7 Portfolio App

    Dear Learners in Today's article we will deploying a Portfolio app on AWS S3 Bucket using GitHub. Table of Contents:…

    10 条评论

社区洞察

其他会员也浏览了