Creating a module in Terraform - Getting started with Terraform Modules (part 1)

  Рет қаралды 65,157

Cobus Bernard

Cobus Bernard

Күн бұрын

Пікірлер: 48
@jigneshpatel5469
@jigneshpatel5469 6 ай бұрын
Best ever session on TF modules.
@Jambajakumba
@Jambajakumba 3 жыл бұрын
I've just discovered you. I'm definitely here to stay. Thank you for the video.
@khemnathChauhan
@khemnathChauhan 6 күн бұрын
Good one.
@TilakVardhan
@TilakVardhan 2 жыл бұрын
Wow! This is certainly the easiest explanation I've come across. Thanks, man!
@peterrubinstein6975
@peterrubinstein6975 3 ай бұрын
great job mann, i just got into terraform and this helped alot
@EJBest-DevSecOps
@EJBest-DevSecOps 3 ай бұрын
Seems like a good piece; but I am trying to type it all in to "get real experience" and seems that I am missing "files" from a previous piece. Perhaps will get blasted as they could be here someplace but seems to not be able to find them
@zvirtual1724
@zvirtual1724 3 жыл бұрын
Cobus, thanks for this.....honestly this was as very clear explanation of modules as well as the best example of using the variables.tf file. Nice!
@pscoriae6981
@pscoriae6981 Жыл бұрын
awesome, this was really easy to follow and now I understand clearly. Thanks!
@takione5991
@takione5991 3 жыл бұрын
Great work! Watching the whole list and learning a lot.
@ThePotassiumiodide
@ThePotassiumiodide 4 жыл бұрын
Thanks, this was really clear! Do you think you could also share the code through a repo?
@donskye5750
@donskye5750 4 жыл бұрын
I am enyouying your video. It's very well explain and easy to understand. You make complex explanation to be easy.Ty
@rodrigueawom1565
@rodrigueawom1565 3 жыл бұрын
This was a great experience, Can you pls cover backend.
@padmanathanmariappan5694
@padmanathanmariappan5694 3 жыл бұрын
Wow really good content for beginners
@2012gaspar
@2012gaspar 2 жыл бұрын
Great content, I learned very about it and I´m studying more about because I have to build an infrastructure with 4 environments and 4 vpc´s. Thank you
@amauryborgessouza6064
@amauryborgessouza6064 2 жыл бұрын
Do you have any GitHub profile to fork the project? appreciate your videos!!!
@vikinoX
@vikinoX 2 жыл бұрын
so nice work man!
@diegonayalazo
@diegonayalazo Жыл бұрын
Thanks for sharing
@saurabhgoreamazing9368
@saurabhgoreamazing9368 Жыл бұрын
Surprised to know that the infra is created without AWS credentials. How are you authenticating terraform
@CobusBernard
@CobusBernard Жыл бұрын
It falls back on whichever credentials are provided - can be ones you have configured for your AWS CLI (SSO or Api key/secret), or the IAM role if you are running on EC2. Never a good idea to hard code credentials in a file that will be added to version control (git).
@Umar0x01
@Umar0x01 3 жыл бұрын
Thanks - could you do one for monitoring and alerting if someone creates/terminates some instance. I want to see some sample TF rules. Thanks!
@ayencoscolfield3312
@ayencoscolfield3312 3 жыл бұрын
Could not have asked for more you nailed it man,kudos but could you do a video on the use of different functions in terraform. thanks for the effort so far
@diegoraggio3180
@diegoraggio3180 2 жыл бұрын
great video!
@ickebinberliner
@ickebinberliner 2 жыл бұрын
Great Tutorial, thank you very much. You helped me a lot!
@michaelduncan6769
@michaelduncan6769 2 жыл бұрын
Thank you for the video. I have a question, what if I wanted to spin up a new instance without destroying the first instance I created. How do I run the same terraform code to create a new instance without destroying the one it created previously and how do I repeat that for future instance creation ?
@eakokel
@eakokel Жыл бұрын
Good, but you never showed what was in the env tfvars files?
@usheeg
@usheeg Жыл бұрын
ec2_instance_name = "Terraform EC2" ec2_instance_type = "t2-micro" ec2_ami = "ami-0cd8ad123effa531a" the variables are customed but this is pretty much what he used to override the values for vars terraform plan -var-file=.tfvars
@arvinvitug7744
@arvinvitug7744 2 жыл бұрын
where can you find what can be used as outputs for a given resource?
@usheeg
@usheeg Жыл бұрын
In your CLI after running terraform plan you'll see this at the end and once you run terraform apply you'll see the output hope this helps Changes to Outputs: + instance_id = (known after apply)
@surekaka4916
@surekaka4916 3 жыл бұрын
Excellent Tutorial :) learned a lot in a short time .. keep up the good work .
@wyattblake4126
@wyattblake4126 4 жыл бұрын
if you needed to create more than one ec2 instance with different settings what would be the best way to do that? Would you create a second module with a different name?
@stevegrimes5105
@stevegrimes5105 3 жыл бұрын
thanks for the video. I tried to find this example, I'd like to see the root and sub module files.
@pallavianand564
@pallavianand564 3 жыл бұрын
Hi Cobus, This is really simple and understandable. Although I have one question : we have 3 services created in our dev environment : S3,Elastic Search and RDS but I am not understanding that how do I create a module and which would benefit each service? Can you please help me with that.
@desmondamberetu4345
@desmondamberetu4345 Жыл бұрын
Cool
@akramsystems
@akramsystems 2 жыл бұрын
bless your soul
@vitality7195
@vitality7195 2 жыл бұрын
Where is the source code?
@vitality7195
@vitality7195 2 жыл бұрын
At all can't understand what your are doing. What represents abstraction: new_module or parent directory?
@diegonayalazo
@diegonayalazo 4 ай бұрын
Thanks
@shilashm5691
@shilashm5691 2 жыл бұрын
This is not a recommended way of creating a module. Please refer to the docs. You need a directory of modules inside it you can create a different directory that is a module
@xammocoloniax
@xammocoloniax 2 жыл бұрын
agreed with others, nice content but plz share the code.
@xammocoloniax
@xammocoloniax 2 жыл бұрын
like really, what are we supposed to do without seeing the content in the first ~20 lines of example.tf or the /variables directory that you all of a sudden involve at 10:33 without having introduced it? i am sort of a noob, so is it just me?
@sab611
@sab611 5 ай бұрын
should say, ec2_instance_name = var.ec2_instance_name ;-)
@johnmorsley
@johnmorsley 3 жыл бұрын
Cracking content, but please, please, please, drop the background music. It's so incredibly distracting and annoying.
@Ritch548
@Ritch548 10 ай бұрын
Using a root module is better practice
@wisdom2608
@wisdom2608 3 ай бұрын
Not nice at all. You talked of VPC and in return created an ec2 instance.
@tekoverlbert6516
@tekoverlbert6516 6 ай бұрын
hi
@alex-ce2te
@alex-ce2te Жыл бұрын
Braa! Your module explanation is not clear. You were practically moving unnecessarily too fast without a detailed explanation.
@mymacaintwag
@mymacaintwag 2 жыл бұрын
This is really bad explained,actually you explain almost nothing, but expect implicitly everything to be derived… Anyhow thanks for the video, it helps of course.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Modules | Terraform Tutorial | #15
35:11
Will Brock
Рет қаралды 121 М.
Learn how to use Terraform variables
9:39
Cobus Bernard
Рет қаралды 26 М.
Creating Modules in Terraform
14:35
Ned in the Cloud
Рет қаралды 9 М.
How to create terraform modules? - Part 9
18:11
Rahul Wagh
Рет қаралды 64 М.
8 Terraform Best Practices that will improve your TF workflow immediately
8:57
Terraform with Multiple State Files
26:14
Michael Crilly
Рет қаралды 21 М.
Terraform Modules - deploying reusable code | DevOps Lab
11:48
DevOps on Azure
Рет қаралды 29 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН