Learn to write Terraform scripts | How to write Terraform code :
In this Terraform tutorial learn Hashicorp Configuration Language or HCL used in writing Terraform Configurations. In this Terraform tutorial you will learn HCL syntax, different datatypes in HCL, How to write functions, Conditional statements, blocks, attributes and more in HCL. After completing this video you will have good knowledge of HCL and you will be able to write Terraform code easily.
HCL Terraform Official documentation: developer.hashicorp.com/terra...
HCL Github : github.com/hashicorp/hcl
This video is a great foundation for the upcoming videos so do not miss it.
Connect with me on LinkedIn: / nasiullha-chaudhari
In this video you will learn below Terraform concepts and more
1. Blocks: Defining blocks using type and enclosing them with curly braces.
2. Attributes: Key-value pairs within blocks.
3. Strings and Numbers: Representing string values in double quotes and numeric values as is.
4. Comments: Adding comments using the `#` symbol.
5. Expressions: Performing operations and manipulating values using `${}` syntax.
6. Lists and Maps: Managing collections of values using square brackets `[]` for lists and curly braces `{}` for maps.
7. Variables: Defining reusable values with default values and specific types.
8. Interpolation: Dynamically inserting values into strings or attributes using `${}` syntax.
9. Conditionals: Using `if` and `else` statements for conditional logic.
10. Functions: Leveraging built-in functions for various operations and transformations.
11. Resource Dependencies: Establishing dependencies between resources.
HCL, which stands for HashiCorp Configuration Language, is a simple and expressive language used by tools like Terraform for writing infrastructure configuration files. It is designed to be human-readable and allows you to define resources, their properties, and their relationships in a concise and easy-to-understand manner. HCL enables you to describe your desired infrastructure state in a declarative format, making it easier to manage and automate the provisioning and configuration of cloud resources.
Timestamps
Intro 0:00
What will you learn in this video 0:38
How to write Comments in HCL 01:32
Blocks and their types 02:51
Attributes in Terraform 03:30
Data types in Terraform 04:30
How to write conditional statements in Terraform Code 06:40
Functions in Terraform 08:45
Resource Dependency 12:06
Summary 14:27
Challenge 15:37
Outro 18:00
To learn Terraform from scratch please checkout the complete Terraform Playlist: • Terraform Full Course:...
Also checkout my other videos:
Master Terraform in 60 mins: • Master Terraform in 60...
DevOps Roadmap from scratch: • How I would Learn DevO...
How to create EC2 using Terraform: • How to create Amazon E...
How to create VPC using Terraform: • How to create AWS VPC ...
How I passed my Terraform Certification: • How I passed my Hashic...
DevOps Engineer salary in 2023: • DevOps Engineer Salary...
After completing this Terraform tutorial learning the hashicorp syntax you will gain the experience and knowledge to write Terraform scripts easily using Hashicorp configuration language.
Cloudchamp is your favourite RU-vid channel to learn Devops and cloud. The motive of this channel is to help people learn Devops tools and technologies along with sharing my learnings on Terraform, Ansible, AWS, other DevOps tools and Freelancing.
Join this channel to get access to perks:
/ @cloudchamp
11 июл 2024