Day 2: Master HCL syntax and Learn how to write Terraform Code

preview_player
Показать описание
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.

This video is a great foundation for the upcoming videos so do not miss it.

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

Also checkout my other videos:

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 Youtube 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:
Рекомендации по теме
Комментарии
Автор

Nice yaar, day 2 done, waiting for day 3

shekharchaugule
Автор

Your playlist series is an absolute blessing for a beginner. Really informative and engaging. Kudos to you!🥳

apoorvachandrayan
Автор

Do you intend to mention arguements and not attributes at 4.28? Both are similar but different from my view. wish you could clarify the difference.

olufowobioladipupo
Автор

Very cool concept explain.... Anyone can understand.... Thank you for this series and excited to see all videos series with actual terraform project

shashankpatil
Автор

Perfect Video honestly I'm searching this type for Video from long time "AWESOME YOUR GREAT" and pls keep update something something new tech video's and we too learn new technology form you, , Thanks alot

danasekaranraman
Автор

Hey good one bro ! Loved the way you showed how to make things on Local usingTerraform rather than directly jumping on to Cloud like everyone else ! Thanks bro ! KEEP POSTING SUCH VIDEOS ! ALREADY A SUBSCRIBER ! 😄💪❤

workwithmayuresh
Автор

Amazing graphics
Wonderful job brother

radhakrishnanak
Автор

Another great video!!! Thank you for taking the time to share the knowledge. A+

marianodangelo
Автор

Hye Nasim bai it was super tutorial video 💜💜💜💜💜💜💜💜. Please do full playlist. Complete terraform.... It was really superb 🎉🎉🎉🎉

deva_
Автор

this series emerged at right time for me….. thank you!

tahseenfatma
Автор

Brother You are doing a great job! .Please keep this series up and since you are in the market please keep it up with real world scenarios .We are grateful for this series . One question How much terraform should i learn for an entry level position as DevOps engineer?

Gohard
Автор

Excellent video man❤ waiting for video
How to create AWS Ec2, VPC and different types of services using Terraform script.

krishnanadella
Автор

You are awesome bro and Thanks for your knowledgeable and amazing video.

krakeshin
Автор

Very Cool video explained concept very well
Thankyou ❤

RohitRajput-ovwx
Автор

Awesome the way you teach.. Please try to do more on Complete DevOps tools..

sunilnaikkethavath
Автор

I ve subscribed ur channel. Ur content are good. Only 1 suggestion- plz explain slowly. U talk very fast. So for beginner, sometimes it become tangent...Thanks

ashwinichivate
Автор

Please continue this series and upload videos everyday 😊

pravanjanmohapatra
Автор

in 2nd video, while completing the challenge of printing a file in local machine using terraform, when I have hit the -> terraform init command. its giving me error. Do we have to comment the main.tf file?? or If i miss something there @cloudchamp

SumitGupta-kxbk
Автор

Great videos man ! you explain very well ! (y) 💯

business_central
Автор

Bro, Can I get a DevOps job as a fresher through placements? I am in 2nd year Btech, cause I suck at
Please reply

saidevaharsha