Terraform Tutorial For Beginners to create Github repo | terraform for beginners | terraform basics

preview_player
Показать описание
Create Github repo using Terraform
terraform + Github
terraform for beginners
terraform basics

Our motto is to help beginners and individuals who want to switch to IT DevOps.

We thought to give back to the community and hence started a YouTube channel for DevOps and multi cloud-related tech topics in Kannada and English.

If you are a beginner or individual who wants to switch to/learn IT DevOps/cloud/Kubernetes. Then please join.

Terraform is an open-source infrastructure as a code tool. HashiCarp has developed it.

Terraform is used by almost all experts/engineers to create any cloud infrastructure. Terraform is the go-to tool for all Cloud Engineers.

Below are the key benefits of terraform

We can codify our application infrastructure
An infrastructure that can be easily reproduced using terraform.
We can version control infrastructure, it can be kept securely and safely.
Why Terraform is so Popular?
Currently terraform is go-to tool for any infrastructure provisioning tasks.

Below are the main reasons

Free to use.

Terraform is declarative language.
The learning curve is very short.
Once you learn to terraform, it is easy to provision infrastructure in other cloud providers with minimal effort.
The syntax is the same for other providers.
We can create an Immutable infrastructure.
Once you don’t need infrastructure, we can destroy infrastructure. Which will save the cost for IT resources.
Terraform is master and agentless compared to other tools. Which saves costs.
How to install Terraform on a laptop?
In order to install terraform please download the appropriate package for your system as zip.

Steps to install on Mac/Linux
Unzip terraform
In order to move the terraform binary use command, “mv terraform /usr/local/bin/”
In order to verify installation, run the command “terraform -help”
Steps to install on Windows
Go to Control Panel --- System ---- System settings --- Environment Variables.
Scroll down in system variables until you find PATH.
Click edit and change accordingly.
BE SURE to include a semicolon at the end of the previous as that is the delimiter, i.e. c:\path; c:\terraform
Launch a new console for the settings to take effect.
In order to verify installation, run the command “terraform -help”
What are all the basic commands of Terraform?
Below are the main commands used in terraform

terraform init
This is the first command we run in terraform.
The command is used to initialise the directory containing Terraform configuration files.
Command will automatically find, download, and install the necessary provider plugins mentioned in the configurations.
terraform fmt
The command is used to rewrite Terraform configuration files to a canonical format and style.
It does linting
It makes code more readable format
terraform plan
The command creates an execution plan.
Checks the current status with the existing backend / local state file.
Indicates any differences between the current infrastructure and the current code.
This is just a dry run, it doesn’t actually create any resources.
terraform apply
This command actually creates all the resources referenced in the Terraform configuration files.
Depending on the number of resources, it will take time to create those resources.
terraform destroy
The command is a convenient way to destroy all resources managed by the Terraform configuration.
This process is irreversible. Once the command is run, Terraform starts to destroy all resources
Рекомендации по теме
Комментарии
Автор

Thank you Sangamesh! it's realistic video for me to do create GitHub resources using Terraform in first attempt.
I never learn Terraform and do not have any hand-son in real world. Thank you again really helpful.

ranjanbiswal
Автор

learned one new concept on github intergration using terraform.

jaganathand
Автор

Excellent session! You make terraform look easy.

vback
Автор

This is amazing.Your doing great things.Much appreacted.Is it only video or u taking any training session.One humble request can the background music can be excluded

kbrajeshwaran
Автор

Is it possible to specify the organisation under which repository is to be created? Rather than users personal namespace

johndorian
Автор

Can u please demo ci ci pipeline using terraform script that an build and deploy in azure devops

msk
Автор

can you make video for github action in gcp to push code to github ?

shivanshusharma.