Skip to main content

Command Palette

Search for a command to run...

Day 4 #90DaysOfDevops

Published
1 min readView as Markdown
O

Aspiring Devops engineer eager to make an impact.

On Day 4, i continued learning terraform (Topic 3: Infrastructure as Code) using the terraform help command on the command line.

Running the “terraform” prompt on the command line leads to an array of commands available for execution. The primary workflow commands were listed first followed by the less common commands.

The most important terraform command is the “terraform init” which prepare the working directory for more commands. It can be ran multiple times so as to bring the directory up to date with changes made to the infrastructure.

There are also commands such as;

  1. Terraform validate: Check whether the configuration is valid

  2. Terraform plan: Show changes required by the current configuration

  3. Terraform apply: Create or update infrastructure

  4. Terraform destroy: Destroy previously-created infrastructure

I tried connecting terraform to my aws account but couldn’t do that yet because my AWS account hasn’t being verified. Trying again tomorrow.

Cheers to day 4 and cheers to many days!

More from this blog

#90DaysOfDevops

35 posts

It's a daily blog of my Daily learning plan for the next 90 days. At the end of the day, i summarised what i have learnt and difficulties faced while learning.