Тёмный

Learn Terraform (and AWS) by Building a Dev Environment - Full Course for Beginners 

freeCodeCamp.org
Подписаться 10 млн
Просмотров 291 тыс.
50% 1

Опубликовано:

 

21 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 202   
@forexmeter3900
@forexmeter3900 Год назад
Awesome course! UPDATE: After watching this course here on RU-vid I went ahead and purchased Derek's course provided in the description. I have to say hands down this is the best Terraform course on the internet! (Believe me, I have watched courses here on RU-vid and on Udemy). I have the Terraform Associate Certification and the title of Derek's course, more than certified, really does justice to the course! The Hashicorp certification is a joke compared to what Derek teaches in the course, and for just $29.99 it's a freebie. The course is worth more than 10X that. My Terraform skills have really improved thanks to this course and Derek I cannot thank you enough for the depth of the course! So for anyone really looking to take their Terraform skills to the next level, forget Udemy courses, Derek's morethancertified Terraform course is on a level by itself. Thank you!!!
@gibranfahad6876
@gibranfahad6876 16 дней назад
This course was beautiful and very much effective, I faced a lot of issues while getting along with the course, but eventually I made it out and in the process I was able to grasp what exactly is Terraform and how to work with it. I want say that I have learnt it completely or mastered it, but I have a clear vision on what is terraform and I thank Derrick for bringing such a simple yet wonderful course to us for FREE!!
@peterlovisek9210
@peterlovisek9210 2 года назад
I love your explanation style. 100% calm, focused and clear. Anybody will understand this video, even those who just begin with Terraform.
@budmonk2819
@budmonk2819 Год назад
Great course - been using TF for about 6 months and this really gave a lot of useful information and optimizations plus using them well in TF. Thank you.
@LarsonV98
@LarsonV98 Год назад
[45:25] AWS AMI [51:15] Key Pair [55:01] EC2 Instance [59:55] Userdata [1:05:07] SSH Config Scripts [1:08:28] Provisioners [1:15:37] Terraform Apply -replace [1:19:56] Variables in Terraform [1:24:22] Variable Precedence [1:30:12] Conditionals [1:35:41] Outputs
@ishandandekar1808
@ishandandekar1808 Год назад
This tutorial was really amazing. I knew nothing about terraform and now I can deploy my projects!
@rohits.k.7839
@rohits.k.7839 Год назад
I was looking for a simple yet comprehensive terraform course , and I found this , just like so!! 😉
@jenright4
@jenright4 2 года назад
The timing is impeccable, just started working with terraform today
@FreeStyleSloth
@FreeStyleSloth 2 года назад
Fr same lol
@MorethanCertified
@MorethanCertified 2 года назад
I hope it helps!
@ojoaderanti
@ojoaderanti Год назад
​@@FreeStyleSloth 5m 5th t44tt54rrrre de bo⁰0 p] p
@ob34915
@ob34915 11 месяцев назад
Same😅
@kc-me6wl
@kc-me6wl 2 года назад
to anybody else who follows this tutorial - it seems in the time that this video was made - a new change was made at 9:44 from terraform. You will now see that on this same terraform page that you have to add a new variable to shared credentials tf file: shared_config_files and then populate the .config file with header like so: [default] region=your-region and output=json then add to be safe: [profile your_custom_profile_name e.g vscode] region=your-region and output=json
@dr.franxx
@dr.franxx 2 года назад
i'm using shared_config_files using array too
@joesalad21
@joesalad21 2 года назад
You can also remove the shared_config_files line completely, and change shared_credentials_files to shared_credentials_file. You'll also need to remove the [ ] brackets, but other than that should be good to go.
@swapnilgohil7280
@swapnilgohil7280 Год назад
if anyone has any problem with this do remove profile = "vscode"
@psych0blzr694
@psych0blzr694 Год назад
To anyone else following this advice, you must also completely close Visual Studio Code (VSC) in order for the changes in the path variables to take place. After that you should be good.
@unwanaudo
@unwanaudo 2 года назад
It's now or never for me in my path to becoming a cloud administrator. And it starts here
@SirWetBiscuit
@SirWetBiscuit Год назад
Okay
@quasenerd5476
@quasenerd5476 Год назад
46:45 AMI 50:58 key pair 59:54 user data 01:05:08 vscode connect to ec2 instance 01:08:20 provisioner (vs to ec2 ssh connection)
@karansangani9383
@karansangani9383 Год назад
This was definitely worth going through for someone who is trying to learn more about Terraform!
@georgeonalo2811
@georgeonalo2811 Год назад
Nice tutorial, a really nice way for me to get started with Terraform. It was at time challenging to follow along because of the scripts that were not available, but I made it to the end. It took me two days.
@dhruvinshah1994
@dhruvinshah1994 Год назад
Good stuff. Did anyone count how many times the instructor spoke "just like so"? 😀
@lornams75
@lornams75 9 месяцев назад
Very engaging and helpful course for a beginner like me. I would love to watch and learn how terraform works with gitlab cicd pipeline to deploy.
@ilj01910529
@ilj01910529 Год назад
Really appreciate! I'm a new on terraform and not good at english all were very clear and understood me.
@arzlanali5591
@arzlanali5591 2 года назад
No word of thank you could justify your effort and explanation. You are just just awesome. I really appreciate the hard work. HUGE humble request please!! Bring a next video and include Modules, data, ENV_VARIABLES (how to use them), also would be nice if you could include a reat time project (mid-->expert level please). I am new to terraform but your video is a great source of learning. many thanks
@imranrehman1784
@imranrehman1784 Год назад
Thanks for this awesome video. Everything worked for me except I couldn't SSH into my instance via VS code. However, I am able to ssh in using Putty. Once again thank you so much this is a very well put together course. Appreciate it. I like to learn Terraform for Kubernetese.
@Pattypatpat7122
@Pattypatpat7122 11 месяцев назад
Really amazing course! easy to follow and understand the concepts. Thanks for sharing, I enjoyed it a lot!
@MrRin_
@MrRin_ Год назад
For those who are getting stuck with launching an instance: If you get an error saying that query has no results, it's because data "aws_ami' "example" is used with already registered AMIs. Try using aws_ami_ids instead. Browse the documentation as it is always changing
@SzymekCRX
@SzymekCRX Год назад
That was perfect - clearly stated, described. Thank You!
@gokhanyildirim4162
@gokhanyildirim4162 Год назад
Thank you for the Great explanation!..Excellent content.
@Allyourneedsmet
@Allyourneedsmet 2 года назад
Just looked at this yesterday and now today here is a vid... Wow
@bhaskar1843
@bhaskar1843 2 года назад
A very detailed explanation helpful for beginners
@priyamunera7518
@priyamunera7518 5 месяцев назад
Great content, thanks for sharing.!
@taiwoaroyehun1916
@taiwoaroyehun1916 Месяц назад
Hi Derek. Thanks for this training. It is one of the best. Where can I find the script for the Docker? Thanks
@ventin75
@ventin75 2 года назад
Super easy to follow tutorial. Great explanation too!
@iamLoveRobert
@iamLoveRobert 2 года назад
Thank you for this offering 👍
@goldmuma
@goldmuma Год назад
Super cool tutorial thanks to creating it.
@sankarsayshi
@sankarsayshi 2 года назад
Excellent course, Thanks a ton
@sumon-g7z
@sumon-g7z Год назад
one of best teachers
@raviy10
@raviy10 2 года назад
Thank you very much Derek Morgan !!! it is very detailed and simple to follow and do in parallel...
@AgentBangla
@AgentBangla 6 месяцев назад
Loved it. Kudos!
@cschmitz
@cschmitz Год назад
This was a great walkthrough. Thanks for taking the time to make it :clap: :bows:
@sihammohamed7480
@sihammohamed7480 2 года назад
Very useful content every day you puplished valuable contents thanks very much fot that 😍🌸👍
@RKSR1960
@RKSR1960 2 месяца назад
Hello Derek, AWESOME Tutorial!! I have been following this class and executing as you're executing the tasks. I am experiencing an issue when attempting to execute the bootstrap in the userdata.tpl file. The script is complaining about the "#!/bin/bash". The server did deploy, but docker was not installed. I am not seeing the issue with this standard bash command. Any advice?
@RayfuzuLearning
@RayfuzuLearning 2 года назад
Very high quality content and perfectly explained.
@optimusprime5037
@optimusprime5037 Год назад
great learning experience any one can suggest next level up recommendation
@_m.guler_
@_m.guler_ Год назад
Thank you, just like so.
@renanestareja6729
@renanestareja6729 2 года назад
do you have another example on setting up SSH config scripts? I'm getting an error and I don't have a config file on my .ssh folder. Thank you and more power!
@aniruddhsingh1725
@aniruddhsingh1725 Год назад
Same thing happened with me as well, but we can do it manually, Install the “remote ssh” plugin , open command pallet, search for “ssh” and click on ”add host” ….it’ll generate the config file….after that when you’ll search for “connect to host” on command pallet…it’ll work same as shown in the tutorial
@ramonaguilera5636
@ramonaguilera5636 11 месяцев назад
Thank you for this!@@aniruddhsingh1725
@UmarKhan-qx7fc
@UmarKhan-qx7fc 2 года назад
Great Video, Just like that!
@danielpinhomonteiro
@danielpinhomonteiro 2 года назад
Great video, thank you so much!
@Xerberuz-Tech
@Xerberuz-Tech 8 месяцев назад
Did anyone have an issue with docker not being installed in the instance after following the instructions to build the userdata.tpl file. Thanks in advance.
@maccles7365
@maccles7365 8 месяцев назад
Same here. And I never recalled him actually providing the .tpl script to copy, so I typed by hand. May have to find a way to install all these manually or with another solution. That's the problem with these FreeCodeCamp videos. My suggestion: downvote and try to combine with a different solution
@nrmz5728
@nrmz5728 2 года назад
i think there may be an issue with the userdata piece. Docker does not seem to install.
@justinshobby
@justinshobby 2 года назад
Same thing on my end. I ended up installing it manually while I was connected to the EC2 via SSH.
@itsmendyou
@itsmendyou Год назад
Thanks, from where I can download this user data script?
@pygeekrfoo820
@pygeekrfoo820 Год назад
really good stuff but need to zoom in on code for the viewer. It was hard to see.
@jose-x-2826
@jose-x-2826 Год назад
Amazing, congratulations..
@webnow
@webnow 2 года назад
I love the video. There's just one thing I don't understand well: I don't know why, but there were two "sudo" in sequence in that userdata. Did that not cause any errors?
@DevOpsHawk
@DevOpsHawk 2 года назад
@Rodrigo Araújo e Castro When Ubuntu EC2 instance is provisioned/created, you're allowed to access using default user which is ubuntu in this case. you can't access with root user. However, ubuntu user is already present in sudoer file to run any sudo command without password. That's why when you're running super admin commands(apt update && apt install package-name) with ubuntu user, you have to pass sudo first. Hope this helps.
@webnow
@webnow 2 года назад
@@DevOpsHawk I mean why using "sudo sudo"? It worked with only one "sudo" before each command. But it's alright. Thanks.
@DevOpsHawk
@DevOpsHawk 2 года назад
My bad, I overlooked "sudo sudo" in userdata.tpl(second last line) file. That's a typo mistake, I believe.
@shaunrod114
@shaunrod114 2 года назад
it is causing error how do we ssh using mac ?
@webnow
@webnow 2 года назад
@@shaunrod114 No, I don't use Mac. It was a typo, as it was told already.
@jaredzuniga827
@jaredzuniga827 Год назад
Thanks
@AbhishekSharma-gg8zz
@AbhishekSharma-gg8zz 2 года назад
Very very nice contents...💯
@rev9662
@rev9662 2 года назад
Great course, but would be nice if userdata.tpl file was provided somewhere as making sure I copied it correctly took up some time. I checked the link provided in the description but couldn't find it.
@noppaboy7720
@noppaboy7720 2 года назад
Okay
@luisalfaro1569
@luisalfaro1569 2 года назад
I was thinking the same, but surely without a doubt one of the most practical and functional videos out here about Terraform with AWS.
@ash3rr
@ash3rr 2 года назад
don't be lazy, just type it out.
@balajiraghavan
@balajiraghavan 2 года назад
Excellent help. Thanks a million.
@ambititusmbuta7762
@ambititusmbuta7762 Год назад
Hay Derek, i couldnot use the provisioner block on this course. When i ran the terraform plan it says the provisioner block is not expected here. What can i do here as an alternative.Thanks
@DarshanPatel-q9m
@DarshanPatel-q9m Год назад
Where can I find tpl-template file?
@crisbuker
@crisbuker 2 года назад
buenas noches ! Consulta, que tiempo se necesita para ser PRO en Terraform ? Saludos Cristian de Argentina
@twocentre
@twocentre 5 месяцев назад
This is great... Please please please... Can you break it up into chatpers and (bitesize) sections with appropriate names/labels so that one can easily reference particular aspects?
@rohittiwari5575
@rohittiwari5575 2 года назад
Great video, except that local provisionar it was a bouncer.
@MobiusCoin
@MobiusCoin 2 года назад
Is the cidr_block just whatever we want or should it be something specific? I don't think that part was well explained.
@olisaeze6934
@olisaeze6934 Год назад
I cant find my ssh config script it is not at the location ~/.ssh
@gideondavid9074
@gideondavid9074 8 месяцев назад
Have you been able to figure this out?
@emmanueloluwayemisi
@emmanueloluwayemisi 2 года назад
i have been troubleshooting this but can't get it resolved. "Error: creating EC2 Instance: InvalidParameterValue: The architecture 'x86_64' of the specified instance type does not match the architecture 'arm64' of the specified AMI. Specify an instance type and an AMI that have matching architectures, and try again. You can use 'describe-instance-types' or 'describe-images' to discover the architecture of the instance type or AMI."
@emmanueloluwayemisi
@emmanueloluwayemisi 2 года назад
@Nodir F Yes. I just resolved it. the problem is the image type selected. so instead of using ubuntu -22-armd64, I look for the one with amd64.
@emmanueloluwayemisi
@emmanueloluwayemisi 2 года назад
I need to add that I changed the machine type as well.
@cypress-ko6ie
@cypress-ko6ie Год назад
I was able to make SSH connection work from VScode. But, I don't understand what the purpose is to have direct SSH link from inside VScode. Don't you do the same thing with separate SSH connections from putty? Or, you want to run tests directly from EC2 instance with code managed by VScode, version control type of stuff?
@ambititusmbuta7762
@ambititusmbuta7762 Год назад
Hay Derek, please can you help show me where to find the userdata script for this course.Thanks
@asmitabagchi6886
@asmitabagchi6886 2 года назад
Any heads-up on terraform with azure?
@networkthor2136
@networkthor2136 2 года назад
Awesome video!
@sparshkhandelwal816
@sparshkhandelwal816 Год назад
bro how do you managed to get the cidr block at 15:59
@MrWorkman2010
@MrWorkman2010 2 года назад
You need to install terraform binaries in your PC before following this tutorial otherwise even the first command "terraform init" will not work
@golieanyirenda
@golieanyirenda 2 года назад
where, c/drive
@swapnilgohil7280
@swapnilgohil7280 Год назад
@@golieanyirenda anywhere. just place path of that exe file of terraform to your environment variable path
@bmar383
@bmar383 Год назад
I have been following the tutorial exactly as showed, but I cannot ping the public IP of the EC2 instances I create. Does anyone know why that is? I have been stuck for a while now and need help.
@bmar383
@bmar383 Год назад
I understood. I was using the wrong personal IP, I have mistakenly put the internal IP rather than the external IP, I was trying to use a private network IP address which obviously prevented me to connect to the EC2 instance
@bibhubal1860
@bibhubal1860 4 месяца назад
Its better keep your profile in credentials and export it rather than configuring in vscode i will chose cli wsl
@bejoyp
@bejoyp 2 года назад
The video was nice.. it would have been even more beneficial if there was some explanation on the resources itself..like what is subnet and what is routingtable etc. Maybe a separate video on that..
@DefriaManda
@DefriaManda 2 года назад
Adrian Cantrill does a good job at that. This course asumes that you know some AWS already. I would recommend ru-vid.com
@liamstevens1637
@liamstevens1637 Год назад
Take a shot for every time he says "Just like so"
@fadi.casual3796
@fadi.casual3796 Год назад
Is there a way to have AWS account without using credit card?
@ifeanyindukwe3086
@ifeanyindukwe3086 2 года назад
I get this error msg in my "aws_vpc" "mtc_vpc" resource: enable_dns_hostnames = true A reference to a resource type must be followed by at least one attribute access, specifying the resource name. Any suggestions, please?
@sparshkhandelwal816
@sparshkhandelwal816 Год назад
01:29:18 - dev.tfvars file creation
@noelmasong9223
@noelmasong9223 2 года назад
I think the block device was small?
@ibrahimmusayev6991
@ibrahimmusayev6991 2 года назад
Thanks! 🙏
@Liam.Stevens
@Liam.Stevens 2 года назад
Thanks for video, maybe be more self-aware on how many times you're saying "just like so" :)
@emmarose9466
@emmarose9466 2 года назад
Focus!
@livecityfilms4992
@livecityfilms4992 2 года назад
Great tutorial! however, I'm having trouble trying to ssh into the instance. I keep getting a connection timeout. Any help or suggestions would be greatly appreciated.
@juancarlogooco5978
@juancarlogooco5978 2 года назад
Check the security group if it has port 22 enabled.
@bmar383
@bmar383 Год назад
did you manage to solve it? I am having the same problem
@shivamrathod9223
@shivamrathod9223 2 года назад
Where's that userdata.tpl script?
@anmolgupta8409
@anmolgupta8409 2 года назад
Where's the script for userdata.tpl at 1:01:00 into the video ?
@alejandrofrank7900
@alejandrofrank7900 2 года назад
I can't get the script to install docker, I couldn't find it either so I typed it
@bhengee5172
@bhengee5172 2 года назад
Hi Derek Please can you share the link to the script for the Linux ssh file?
@giogalindo4104
@giogalindo4104 Год назад
Sorry Im starting this GREAT tutorial im amazed by, but where is the script for the boostrap the EC2 installing docker?? hahahah I cant find it anywhere or even on the official page, can someone paste it here? thanks!
@kahvyuhh
@kahvyuhh Год назад
Having trouble with connection 22 errors. cannot connect via SSH
@gideondavid9074
@gideondavid9074 8 месяцев назад
There is no config file in my .ssh directory. how do I get it?
@gideondavid9074
@gideondavid9074 8 месяцев назад
I figured we can do it manually, Install the “remote ssh” plugin , open command pallet, search for “ssh” and click on ”add host” ….it’ll generate the config file….after that when you’ll search for “connect to host” on command pallet…it’ll work same as shown in the tutorial
@phanichandar3796
@phanichandar3796 7 месяцев назад
Thankyou verymuch ..@@gideondavid9074
@kushahmad
@kushahmad Год назад
Hello, Great video. Just an update regarding the shared_credentials_files, I struggle with the format of the string. The one that works needed the square bracket around the string. This format works ["C:/users/nameofuser/.aws/credentials" ]
@MohamedElsayed-tc5yg
@MohamedElsayed-tc5yg Год назад
I like your way
@radegold3122
@radegold3122 2 года назад
has anybody found a workaround, for the "cat ~/.ssh/config" command not pulling the instance IP into the ssh config file?
@radegold3122
@radegold3122 2 года назад
nevermind, figured it out. i was using "()" instead of {} in the windows-ssh-config.tpl file
@georgeonalo2811
@georgeonalo2811 Год назад
@@radegold3122 still didn"t figure it out: is this what you mean? add-content -path c:/users/.ssh/config -value @' Host ${hostname} HostName ${hostname} User ${user} IdentityFile ${identityfile} '@
@JasieK0
@JasieK0 2 года назад
If anyone else experiences problems when opening remote VS Code If error is like 'permissions are too open' You need to go to your .pub file -> Properties -> Security and leave only Administrators, System and youself with Read rights
@kotikobillionaire281
@kotikobillionaire281 Год назад
Where is the code for future reference?
@ColeMarsteller
@ColeMarsteller 7 месяцев назад
how did you run a windows script on ubuntu
@xammocoloniax
@xammocoloniax 2 года назад
One weird thing I'm experiencing: my route table has the 'name' tag set to 'dev_public_rt', and the tag shows as such in the AWS console; however, the 'Name' column is still blank for it in the console's 'Route tables' list, unlike how it shows in this video 39:28. I know I can manually add that label easily, but wondering if something is different on the code level...
@justinshobby
@justinshobby 2 года назад
Hey, can you try setting it to Name = "dev_public_rt" and see if it will work? * I used Name instead of name on my end, and it worked as expected.
@xammocoloniax
@xammocoloniax 2 года назад
@@justinshobby Hi Justin, and thanks for the note! Sadly setting the tag to 'Name' instead of 'name' didn't work for me still - the 'Name' column for the RT remains blank.
@culeforever5408
@culeforever5408 7 месяцев назад
Dont forget to "terraform destroy" after the end of this course 😅
@calebemmanuel5178
@calebemmanuel5178 2 года назад
Hello I can't find the script files, for both boostraping the instances and for the windows ssh config
@calebemmanuel5178
@calebemmanuel5178 2 года назад
I found it thanks!
@johnfkandwe2374
@johnfkandwe2374 2 года назад
@@calebemmanuel5178 can you share the link to the script files. I typed out the userdata however when I ssh into the instance docker isn't installed :(
@tejapatel7071
@tejapatel7071 2 года назад
On point
@s.spambot9095
@s.spambot9095 2 года назад
Am I the only one whose docker didn't installed?
@Jared-ln1pd
@Jared-ln1pd 2 года назад
mine didnt either
@s.spambot9095
@s.spambot9095 2 года назад
@@Jared-ln1pd I ended up using a bash script instead of a .tpl so you might as well try it and see what happens
@EnmanuelToribio
@EnmanuelToribio 2 года назад
This is the guy from smallville O:
@matts8136
@matts8136 2 года назад
I need some help. I’m stuck on the terraform init command. It’s saying terraform is not recognized
@matts8136
@matts8136 2 года назад
Saw the comment below saying installing terraform was skipped in the video.
@matts8136
@matts8136 2 года назад
I’m getting
@ash3rr
@ash3rr 2 года назад
install terraform and aws cli - those are the prereqs.
@chaoukiCMCM
@chaoukiCMCM 6 месяцев назад
And just like so!
@jordanbooker4711
@jordanbooker4711 2 года назад
can someone tell me why I did the userdata.tpl file when I spin up the EC2 it says I have to install docker. I literally copied the code from MTC's github but it docker isn't install on the EC2 instance? Please help!
@MorethanCertified
@MorethanCertified 2 года назад
Sometimes it takes a bit for Docker to become installed. You may have to wait a few minutes for it to work. Also, ensure you're using the right Ubuntu instance. If you use CentOS or a distribution that doesn't utilize apt, it will fail.
@marq_8976
@marq_8976 2 года назад
I can't see the resources on AWS console for vscode user.
@marq_8976
@marq_8976 2 года назад
Figured it out: Global view.
@anyetitan8410
@anyetitan8410 2 года назад
@@marq_8976 or you can select the region in which your created stated in the code which is "us-west-2"
@TomerBenDavid
@TomerBenDavid 2 года назад
Is this mv7 mic?
@codernerd7076
@codernerd7076 2 года назад
What is Terraform?!
@shreinikjain8599
@shreinikjain8599 2 года назад
Infrastructure as code platform
@shreinikjain8599
@shreinikjain8599 2 года назад
You can code your resources on aws or azure or many other vendors
@codernerd7076
@codernerd7076 2 года назад
@@shreinikjain8599 Using DigitalOcean for all my hosting here
@களவையும்கற்றுமற
@@codernerd7076 amen
Далее
Why You NEED To Learn Terraform | Practical Tutorial
27:33
ТЕСЛА КИБЕРТРАК x WYLSACOM / РАЗГОН
1:40:47
AWS VPC Beginner to Pro - Virtual Private Cloud Tutorial
2:11:42
AWS Networking Basics For Programmers | Hands On
27:14
Просмотров 136 тыс.
Terraform Explained
8:44
Просмотров 278 тыс.
What is AWS Cloudformation? Pros and Cons?
16:25
Просмотров 139 тыс.
Intro to AWS - The Most Important Services To Learn
50:07