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

  Рет қаралды 22,815

Cloud Champ

Cloud Champ

Күн бұрын

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 KZbin 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

Пікірлер: 94
@shekharchaugule7700
@shekharchaugule7700 Жыл бұрын
Nice yaar , day 2 done,waiting for day 3
@cloudchamp
@cloudchamp Жыл бұрын
Day 3 coming tomorrow 9 pm ist
@shashankpatil5905
@shashankpatil5905 Жыл бұрын
Very cool concept explain.... Anyone can understand.... Thank you for this series and excited to see all videos series with actual terraform project
@cloudchamp
@cloudchamp Жыл бұрын
SO happy to hear that this is helping you will create more videos soon
@tahseenfatma9629
@tahseenfatma9629 11 ай бұрын
this series emerged at right time for me….. thank you!
@cloudchamp
@cloudchamp 11 ай бұрын
So happy to help 😃🤝
@marianodangelo8220
@marianodangelo8220 3 ай бұрын
Another great video!!! Thank you for taking the time to share the knowledge. A+
@cloudchamp
@cloudchamp 3 ай бұрын
You are welcome, make sure to share & subscribe 😀
@workwithmayuresh
@workwithmayuresh 10 ай бұрын
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 ! 😄💪❤
@cloudchamp
@cloudchamp 10 ай бұрын
Glad you liked it!✨ Happy to help 🙏
@RohitRajput-ov7wx
@RohitRajput-ov7wx Жыл бұрын
Very Cool video explained concept very well Thankyou ❤
@cloudchamp
@cloudchamp Жыл бұрын
Most welcome 😊
@danasekaranraman3685
@danasekaranraman3685 2 ай бұрын
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
@cloudchamp
@cloudchamp 2 ай бұрын
Thank you, I will
@krakesh2003in
@krakesh2003in 11 ай бұрын
You are awesome bro and Thanks for your knowledgeable and amazing video.
@cloudchamp
@cloudchamp 11 ай бұрын
It's my pleasure
@radhakrishnanak5101
@radhakrishnanak5101 Ай бұрын
Amazing graphics Wonderful job brother
@cloudchamp
@cloudchamp Ай бұрын
Thank you 👍
@business_central
@business_central 7 ай бұрын
Great videos man ! you explain very well ! (y) 💯
@cloudchamp
@cloudchamp 7 ай бұрын
Thanks 😊 Happy to help 👍🏻
@pravanjanmohapatra7247
@pravanjanmohapatra7247 Жыл бұрын
Please continue this series and upload videos everyday 😊
@cloudchamp
@cloudchamp Жыл бұрын
Sure Pravan 🤝
@gamingchamp3070
@gamingchamp3070 Жыл бұрын
Amazing video brother, I am learning a lot ❤
@cloudchamp
@cloudchamp Жыл бұрын
Glad to hear that. Will learn more from upcoming videos ☺️
@deva_2022
@deva_2022 11 ай бұрын
Hye Nasim bai it was super tutorial video 💜💜💜💜💜💜💜💜. Please do full playlist. Complete terraform.... It was really superb 🎉🎉🎉🎉
@cloudchamp
@cloudchamp 11 ай бұрын
Thanks Deva, happy to help 😀 Will upload the remaining videos super soon
@birbalsarva9956
@birbalsarva9956 Жыл бұрын
Amazing thank you!❤
@cloudchamp
@cloudchamp Жыл бұрын
You're welcome 😊 Birbal
@nabi140
@nabi140 Жыл бұрын
Thanks for the series
@cloudchamp
@cloudchamp Жыл бұрын
You are welcome
@krishnanadella4397
@krishnanadella4397 Жыл бұрын
Excellent video man❤ waiting for video How to create AWS Ec2, VPC and different types of services using Terraform script.
@cloudchamp
@cloudchamp Жыл бұрын
Will be uploading it tomorrow!!!
@Gohard7
@Gohard7 Жыл бұрын
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?
@cloudchamp
@cloudchamp Жыл бұрын
That's the plan!
@adarshjha__1
@adarshjha__1 11 ай бұрын
Amazing content for free 👑🙏
@cloudchamp
@cloudchamp 11 ай бұрын
All for the community 🙏
@biswajitmohapatra2172
@biswajitmohapatra2172 Жыл бұрын
Always first ❤
@cloudchamp
@cloudchamp Жыл бұрын
You're the best!❤
@sunilnaikkethavath3622
@sunilnaikkethavath3622 Жыл бұрын
Awesome the way you teach.. Please try to do more on Complete DevOps tools..
@cloudchamp
@cloudchamp Жыл бұрын
Thank you for the support Sunil, I will do more
@mallikarjunkonemane6908
@mallikarjunkonemane6908 Жыл бұрын
All champ🔥🔥🔥
@cloudchamp
@cloudchamp Жыл бұрын
🙏🙏
@kavyagadiparthi3035
@kavyagadiparthi3035 Жыл бұрын
nice info Champ
@cloudchamp
@cloudchamp Жыл бұрын
You are welcome 🤗
@shahedabanu3616
@shahedabanu3616 Жыл бұрын
Hi, can you please share details on how you used to apply freelancing projects. Thanks in advacnce.
@bhavikvegad3449
@bhavikvegad3449 Жыл бұрын
Thenks Nassi !!
@cloudchamp
@cloudchamp Жыл бұрын
You are welcome
@faizullahpathan2396
@faizullahpathan2396 Жыл бұрын
Good 👍
@cloudchamp
@cloudchamp Жыл бұрын
Thanks Pathan Bhai !!!
@Tamilstyle
@Tamilstyle 9 ай бұрын
hi bro, i done my terraform successfully applied .but txt file is not created in visual code
@supriyachaudhary-tl8wd
@supriyachaudhary-tl8wd 3 ай бұрын
Hello @cloud champ i can see only 5video for terraform … can be help me with whole course .. where i can find
@mohdatheeq8624
@mohdatheeq8624 Жыл бұрын
Trt to push the video on daily basis ,thanks in advance
@cloudchamp
@cloudchamp Жыл бұрын
I will try my best
@C.RonaldoCR7G
@C.RonaldoCR7G 7 ай бұрын
sir please help me with a video to set up Terraform. mine won't apply my codes. please help me with a step by step set up. I do appreciate
@aekshannu815
@aekshannu815 Жыл бұрын
Bro please regularly post the videos on devops... If possible please start a playlist on devops 😊
@cloudchamp
@cloudchamp Жыл бұрын
Will try for sure brother
@vamshikrishna7945
@vamshikrishna7945 10 ай бұрын
@@cloudchamp hey cloud champ try to teach slowly ..u all ways going very fast,last time u did a video on aws with terraform on abhishek channel in that video u teached very fast,try to teach slowly for next upcoming videos, due to your fast teaching am not able to continue entire concepts
@olufowobioladipupo3830
@olufowobioladipupo3830 2 ай бұрын
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.
@adedayoademefun8895
@adedayoademefun8895 Ай бұрын
I was looking for this comment. The right word is 'arguments,' as you mentioned. You can’t view attributes until after resources have been created. Arguments are what you define in the resource block, so he is definitely wrong.
@firdhowsmsy1677
@firdhowsmsy1677 8 ай бұрын
💜💜💜
@ashwinichivate3905
@ashwinichivate3905 Жыл бұрын
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
@cloudchamp
@cloudchamp Жыл бұрын
I will try my best
@AlikElzin
@AlikElzin 10 ай бұрын
Like for the Linux desktop 💜
@cloudchamp
@cloudchamp 10 ай бұрын
❤️❤️❤️
@sanaazmi8113
@sanaazmi8113 10 ай бұрын
Hi ! , I was trying to do the challenge aswell but this error occurred , please help 'terraform' is not recognized as an internal or external command, operable program or batch file.
@cloudchamp
@cloudchamp 10 ай бұрын
This looks like an error when terraform is not set to environment path, check the documentation and follow the installation steps properly
@AlikElzin
@AlikElzin 10 ай бұрын
For map keys, are quotes a must?
@cloudchamp
@cloudchamp 10 ай бұрын
Depends on the data type
@deva_2022
@deva_2022 11 ай бұрын
Hye bro wich device you r u using Mac or windows, the transparent terminal was very nice. How to do that.
@cloudchamp
@cloudchamp 11 ай бұрын
I am using Ubuntu Linux brother
@deva_2022
@deva_2022 11 ай бұрын
@@cloudchamp how to make transparent terminal 🙂?
@mysticmahabharat
@mysticmahabharat Жыл бұрын
Thanks for making this series ♥️♥️....as im a beginner can i learn it directly or do i need to learn something else before starting terraform?
@cloudchamp
@cloudchamp Жыл бұрын
You can learn this directly but console knowledge helps 💯
@mysticmahabharat
@mysticmahabharat Жыл бұрын
@@cloudchamp thanks ♥️
@abhijitdivekar.1557
@abhijitdivekar.1557 Жыл бұрын
@@cloudchamp Please make video on console also
@sohamkasar7218
@sohamkasar7218 10 ай бұрын
Which extensions u have downloaded in vs code ??
@cloudchamp
@cloudchamp 10 ай бұрын
Hashicorp
@025saidevaharsha5
@025saidevaharsha5 Жыл бұрын
Bro, Can I get a DevOps job as a fresher through placements? I am in 2nd year Btech, cause I suck at DSA..... Please reply
@cloudchamp
@cloudchamp Жыл бұрын
not sure about placements but yes you can get devops jobs as a fresher I got it as a fresher but offcampus
@Harshavardhan15970
@Harshavardhan15970 Жыл бұрын
​@@cloudchampI have careergap of 6yrs will i have a chance
@subbareddydumpala1499
@subbareddydumpala1499 11 ай бұрын
Can someone please help with the Terraform installation steps?
@cloudchamp
@cloudchamp 11 ай бұрын
Follow the official documentation
@RajadDanda
@RajadDanda 7 күн бұрын
bro do you train people terraform
@cloudchamp
@cloudchamp 7 күн бұрын
Few
@RajadDanda
@RajadDanda 3 күн бұрын
@@cloudchamp I want to learn can you teach me do let me know if you can..
@2wheeler4ever
@2wheeler4ever Жыл бұрын
cool hat 👒
@cloudchamp
@cloudchamp Жыл бұрын
Thanks !!! How was the video
@gamingchamp3070
@gamingchamp3070 Жыл бұрын
John Cena 😂😂
@cloudchamp
@cloudchamp Жыл бұрын
🤣🤣 Glad you can see him
@sudarshankshirsagar4568
@sudarshankshirsagar4568 Жыл бұрын
Udemy pe courses bana ...
@cloudchamp
@cloudchamp Жыл бұрын
Sahi bolra hai
@2wheeler4ever
@2wheeler4ever Жыл бұрын
Finally
@cloudchamp
@cloudchamp Жыл бұрын
Let me know your thoughts
How to Connect AWS with Terraform | Set Credentials & Configure
13:22
What it feels like cleaning up after a toddler.
00:40
Daniel LaBelle
Рет қаралды 68 МЛН
Python Tutorial: if __name__ == '__main__'
8:43
Corey Schafer
Рет қаралды 2 МЛН
Terraform explained in 15 mins | Terraform Tutorial for Beginners
18:15
TechWorld with Nana
Рет қаралды 1,5 МЛН
Easiest way to Gain DevOps experience (FOR BEGINNERS!)
5:05
Devops With Mike
Рет қаралды 2,3 М.
How to create AWS VPC with Subnets using Terraform
10:31
Cloud Champ
Рет қаралды 12 М.
8 Terraform Best Practices that will improve your TF workflow immediately
8:57
Python OOP Tutorial 1: Classes and Instances
15:24
Corey Schafer
Рет қаралды 4,4 МЛН
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,1 МЛН
Day 4 : Terraform Variables and Outputs Tutorial
22:56
Cloud Champ
Рет қаралды 11 М.
Yaml Tutorial | Learn YAML in 18 mins
18:05
TechWorld with Nana
Рет қаралды 619 М.