Terraform : AWS - How to build reusable terraform modules with example

Поділитися
Вставка
  • Опубліковано 7 лис 2024

КОМЕНТАРІ • 145

  • @karthikchowdarynamburu8687
    @karthikchowdarynamburu8687 4 роки тому +7

    This is very useful and far better that all other videos which focuses on jargon instead of the fundamental concepts. Thanks a lot Sir

  • @sumitroy-vu7mm
    @sumitroy-vu7mm 3 роки тому +1

    Best video on youtube to understand modules and how to use them from main.tf file. By following this video I was able to use the module concept in my azure terraform script

  • @kappaj01
    @kappaj01 4 роки тому +9

    At last - somebody explaining different env setups as well! Great stuff!

  • @femiibrahim7645
    @femiibrahim7645 Рік тому

    The best training on modules. Now I understand modules

  • @velozdesign
    @velozdesign 3 роки тому +3

    I thoroughly enjoyed and learned many things watching your quick video, and I hope you have additional videos on aws terraform. Thank you very much!

  • @kkishore025
    @kkishore025 Рік тому +1

    One of The Best Devops Videos. Thanks A lot Sir.

  • @duranjimerson7349
    @duranjimerson7349 2 роки тому +1

    better than any tutorial i have ever came across! this helped me in a pinch! thank you!

  • @supoakinleye1864
    @supoakinleye1864 2 роки тому

    I like this because you are showing how to use the documentation and build your infra from scratch

  • @shamilimurugaiyan203
    @shamilimurugaiyan203 3 роки тому +1

    Your way of teaching is awesome 😍😀

  • @maxsterling9908
    @maxsterling9908 2 роки тому +1

    Thank you for this video. You helped me solve my module issues.

  • @udaypatel83
    @udaypatel83 5 років тому +2

    Hari sir, Many many thanks for explaining the concepts so very nicely. Great delivery!

  • @SagarSingh-ie8tx
    @SagarSingh-ie8tx 5 років тому +1

    Awesome video sir...by seeing this video only i got the confidence that i can clear interview as a experienced in Terraform :) i did practice also and all worked fine :) now trying to create more complex infra Structure and i will see all other your videos on Terraform :)

  • @kappaj01
    @kappaj01 4 роки тому +11

    Good idea to run "terraform validate" to check for syntax errors, etc

  • @slimflex1
    @slimflex1 3 роки тому +1

    I love your style of teaching. Keep it up. thanks

  • @orazor777
    @orazor777 2 роки тому +1

    Top notch instructor.

  • @Mrnw10
    @Mrnw10 3 роки тому +2

    Great job Hari!

  • @maheshpawar4557
    @maheshpawar4557 Рік тому +1

    Very Nicely explained. Thanks you Sir.

  • @pathakajit
    @pathakajit 6 років тому +2

    Good work. Fantastic video with simple and non-complicated explanation. Thank you!

  • @jagdishbelapure7521
    @jagdishbelapure7521 3 роки тому +2

    Really good explanation sir!! The session was helpful to get better clarity on modules!!

  • @ayushsitoke2456
    @ayushsitoke2456 3 роки тому +1

    You made it very easy to understand!! Kudos!! 👍

  • @ventin75
    @ventin75 Рік тому +1

    Finally i understand how to use modules.

  • @Musicy9
    @Musicy9 4 роки тому +2

    Thanks so much for this video. This is really useful, helpful and easy to understand how to create module and utilize it.

  • @rakesh989
    @rakesh989 4 роки тому +1

    Thank you sir for all the videos. Your tutorials are very helpful.

  • @kamalbahadur007
    @kamalbahadur007 2 роки тому

    Found this video just at the right time. Thanks.

  • @KrystianKunowski
    @KrystianKunowski Рік тому +1

    Good video because focus on practical approach.

  • @leelakrishnachava3175
    @leelakrishnachava3175 5 років тому +2

    I appreciate the explanation. This method is useful for beginners.

  • @leftwing871
    @leftwing871 4 роки тому +1

    Thanks to your explanation I can understand the module

  • @arthursingleton2236
    @arthursingleton2236 4 роки тому +1

    This is very clear and very helpful. Well done I am subscribing!

  • @unknownperson3066
    @unknownperson3066 2 роки тому

    Great video, you shou run ‘terraform fmt’ and ‘terraform plan’ before running apply to check any syntax error

  • @ravichandrak2146
    @ravichandrak2146 5 років тому

    Well composed video series. Teach some more advanced topics on AWS using Terraform and basic topics using Terraform on various cloud providers. My suggestion is to use tabs side by side (or) up and down in Atom editor , instead of switching between the tabs by clicking in the directory pain (Left to the screen).
    Thank you

  • @barathkawinak7873
    @barathkawinak7873 3 роки тому

    excellent video. very helpful. Thanks Sir

  • @ck-mj7zz
    @ck-mj7zz 3 роки тому +1

    Thanks for the details. Very helpful

  • @yogithakakarla1716
    @yogithakakarla1716 3 роки тому +1

    Useful knowledge article

  • @joostmiddeljans9215
    @joostmiddeljans9215 2 роки тому

    This is such a good explenation, well done!

  • @nzalex1
    @nzalex1 4 роки тому

    Exelent collection of videos on Terraform basics, thanks a lot!

  • @Hackenbaker
    @Hackenbaker 5 років тому +2

    Thanks a lot!! Great teacher! Great content. Very useful for Dummies like me.

  • @sasikanth9179
    @sasikanth9179 3 роки тому +2

    Great demonstration indeed. Just wondering on how we can handle IAM roles and policies. Should we make them to modules too ?

  • @frankiestroud5523
    @frankiestroud5523 5 років тому +1

    very good explanation and demonstration

  • @srinivasanrajagopalan3140
    @srinivasanrajagopalan3140 4 роки тому +1

    it's very clear explain..can you provide video for Work space for multiple environment ..

  • @rritsoftwaresolutions9566
    @rritsoftwaresolutions9566 2 роки тому

    thankq so much sir nice video , please do same more videos keep it up

  • @steveaustin6608
    @steveaustin6608 2 роки тому

    Thank you so much, clear & precise

  • @JavaHomeCloud
    @JavaHomeCloud  6 років тому

    contact us online classroom training's & project support please contact phone number +919886611117

  • @87rushi
    @87rushi 6 років тому +5

    Thank you so much!!!
    This is really helpful and explained in better way !! :)

  • @AdekunleLawal
    @AdekunleLawal 5 років тому +2

    Very clearly explained. 👏🏿👏🏿👏🏿

  • @durbabanik3372
    @durbabanik3372 4 роки тому +1

    Extremely nice video.thanks

  • @romeo9460
    @romeo9460 4 роки тому +1

    Excellent explanation.. 👏

  • @vamsikrishna2330
    @vamsikrishna2330 4 роки тому +1

    Thanks much... such a neat explanation Sir!!

  • @mangeshxjoshi
    @mangeshxjoshi 4 роки тому +1

    Excellent explanation , thank sir

  • @prashantragade7739
    @prashantragade7739 4 роки тому +1

    Thank you sir , very informative video

  • @srigeetha3004
    @srigeetha3004 4 роки тому +1

    Nice explanation , Thank you ,

  • @adityaprasad6589
    @adityaprasad6589 5 років тому

    Hi , the advanced topics on terraform were awesome. I have request to add testing frame work for terraform before its deployed to cloud.

  • @RyanUsesThisChannel
    @RyanUsesThisChannel 6 років тому +3

    Exactly what I needed. Thanks!

  • @Dongdot123
    @Dongdot123 5 років тому +3

    This is a very good video. Thanks

  • @mahavishnu_ramakrishnan
    @mahavishnu_ramakrishnan 4 роки тому +1

    Thanks for the video. Much helpful

  • @NANINANI-ix6uf
    @NANINANI-ix6uf 3 роки тому +1

    super explanation..

  • @bhushandhande4666
    @bhushandhande4666 3 роки тому +1

    excellent content!!

  • @ชัยวัฒน์ตั้งตรงสุนทร

    Thank you so much. This is good start for beginners.

  • @PJudt
    @PJudt 5 років тому +1

    Excellent! In newer versions of Terraform it appears that they've added strict variable name checking. How would you get past this? Error: Variable 'vpc_cidr': duplicate found. Variable names must be unique.

  • @deadsoulrising
    @deadsoulrising 4 роки тому +1

    Very usefull vídeo, thank you

  • @moragas8299
    @moragas8299 Рік тому

    thanks very good tutorial

  • @adk-e2s
    @adk-e2s 4 місяці тому +1

    Ty

  • @agnibpyne5404
    @agnibpyne5404 4 роки тому

    Hi Sir, Its really useful video. What if I want to use an existing VPC and subNet? Do I still need to create any separate modules for VPC?

  • @cstflyer
    @cstflyer 3 роки тому +1

    This is a good course!!

  • @PradeepKumar-jh2gn
    @PradeepKumar-jh2gn Рік тому

    Good work! Thank you!

  • @romaoatila
    @romaoatila 4 роки тому +1

    What excelent content! Thanks a lot!

  • @PruthviReddyLokasani
    @PruthviReddyLokasani 4 роки тому +1

    Very useful

  • @chetangokhale2592
    @chetangokhale2592 4 роки тому

    Hello, Great video. Quick question. Is it possible for you to show how to implement terraform workspaces in a project?

  • @pritykumari5265
    @pritykumari5265 4 роки тому

    Hello sir.. Nice explanation..
    I have 1 question regarding lambda deployment. Here is the scenario: I want to deply lambda functions with different names in different environment but with the same aws account. How can I achieve this? Because each lamndas will have unique urn that I need to provide in lambda_config block in cognito user pool resource creation through terraform. Please guide.
    Thanks a lot

  • @prashantpokhriyal6308
    @prashantpokhriyal6308 3 роки тому

    Nicely explained . I have one query how to pass Access Key and Secret Key ??

  • @nareshb6192
    @nareshb6192 4 роки тому

    Hi sir,
    Which function is used for spin up a VMs
    Multiple times..
    Use case:
    Step 1: spin up 1 VM,
    Step 2: spin up 2 VMs (I don't want to lose vm which is spin up in step 1)
    After success. total I have 3 VMs.
    Then
    Step 3: spin up 5
    Result should be 5+3 =8
    What's the best way to spin up new VMs along with existing VMs.

  • @finncrisp9900
    @finncrisp9900 5 років тому +1

    Excellent content! I have couple of questions. In current design, you have to run terraform init in each env module (dev, prod). Is it possible to avoid this by using terraform workspaces? Is it possible to have .terraform in the root directory and when you need to apply dev or prod environment, you would just run terraform apply on that specific environment module?

    • @JavaHomeCloud
      @JavaHomeCloud  5 років тому +1

      Yeah, Using terraform workspaces we can have single .terraform folder with multiple state files for each environment(dev,prod,stg(

    • @uzomachukwudi658
      @uzomachukwudi658 5 років тому +1

      Workspaces are not the best for implementing total isolation. File layout is the best, just as described above. Cheers

  • @bhaskarreddy3743
    @bhaskarreddy3743 4 роки тому +1

    Awesome 👍

  • @AjayChakravarthi
    @AjayChakravarthi 5 років тому

    Thanks for the video, its very helpful for learners.
    One question: Where did you pass AWS credentials for terraform to access the account??

    • @cherah3012
      @cherah3012 5 років тому

      www.terraform.io/docs/providers/aws/index.html

  • @noatec
    @noatec 5 років тому +1

    Very helpful. Thank You.

  • @tekchand3212
    @tekchand3212 5 років тому

    Good Explanation with great content Sir, but i have one question for you...you have explained all the things for single instance. If we need to create 10 instance then we need to create 10 different project or directory or we can use single directory. I am very confused with this. Please help me.

  • @aruna8782
    @aruna8782 4 роки тому

    Is there any certification available from Terraform specific to AWS cloud?

  • @haalandgold3097
    @haalandgold3097 4 роки тому

    You are the guy! Thx!!!

  • @rajasekhary7353
    @rajasekhary7353 5 років тому

    Sir, I like your videos very much, I have one question for you.
    I wanted to launch 30 instances in 3 different availability zone's. Can we do this using interpolation? Please make vedio on this or a simple comments is also fine.

  • @YouTubers-rj9xv
    @YouTubers-rj9xv 3 роки тому +1

    Please make a video on terraform version constraint
    Many facing issues while updating version in templates

  • @datta5188
    @datta5188 4 роки тому

    Hi, Here we can test if particular resource is created or not on aws free account, how do we have to test this if we are working in a team and Dev environment, Does team use a single account?

  • @loverebel6632
    @loverebel6632 2 роки тому

    very nice , beautiful .

  • @Reddy-by9wf
    @Reddy-by9wf 5 років тому

    Hi, nice explanation how are you getting the automatic prediction when typing in atom should we install any configurations from atom..If so please tell me how to proceed with that.

    • @prasannakumar0111
      @prasannakumar0111 5 років тому +1

      Yeah, you have to download the terraform package in atom.

  • @NaveenKumar-fe4rx
    @NaveenKumar-fe4rx 4 роки тому

    There is no use of string interpolation. You can directly use :
    cidr_block. =. var.vpc_cidr

    • @JavaHomeCloud
      @JavaHomeCloud  4 роки тому +1

      That is introduced from terraform 0.12 onwards

  • @shivpatil1315
    @shivpatil1315 2 роки тому

    excellent!!

  • @jeetucs231
    @jeetucs231 4 роки тому

    Amazing

  • @bhaskar6705
    @bhaskar6705 6 років тому

    Hi Hari ..can you help me how I can watch all your Terraform videos . Please help all your stuff are really good

  • @juergenschubert3247
    @juergenschubert3247 4 роки тому

    just wonder what atom package you are using which shows the autocomplete of your writing. so when you start writing "var"... your autocomplete shows variable.

    • @sasikanth9179
      @sasikanth9179 3 роки тому

      I am using 'language-terraform 0.95' (github.com/cmur2/language-terraform)

  • @bhakta_rg
    @bhakta_rg 5 років тому +1

    Sir, how can we re-use the VPC-ID and subnet-ID from the modules when the VPC CIDR is completely different in the dev environment (192.168.)? I did not understand.

  • @shanmugapriyanm6483
    @shanmugapriyanm6483 5 років тому

    Really Nice

  • @NuTTyBoY03
    @NuTTyBoY03 5 років тому

    Nice video....Thank you!

  • @TheMaderDog
    @TheMaderDog 5 років тому

    Brilliant again, star!

  • @rakyrstsdsss771
    @rakyrstsdsss771 9 місяців тому

    what if we dont want a resource in one environment and not in other env ? when using common module ?

  • @yayyy5866
    @yayyy5866 3 роки тому +1

    Hey how to add user_data into ec2 instances?

    • @JavaHomeCloud
      @JavaHomeCloud  3 роки тому

      Put following attribute under aws_instance resource
      user_data = file("apache.sh")
      "apache.sh" should contain user_data script

    • @yayyy5866
      @yayyy5866 3 роки тому

      @@JavaHomeCloud Hey i want to controly ingress bound in security groups by allowing my own ip tp acess the instance

  • @jeyyu2003
    @jeyyu2003 5 років тому

    Excellent!

  • @sandv2902
    @sandv2902 Рік тому

    Sir can u do terraform module with latest version

  • @Pikachubakinaction
    @Pikachubakinaction 4 роки тому

    Hi Sir, I am unable to do this in Azure. is there any way you can help me?

  • @BariqKassir
    @BariqKassir 6 років тому

    Hi sir,
    You are doing a great job, very good video :)
    Iam just wondering how can I refer tags from main instead of putting it in the ec2 module.
    I want to do it like in the dev folder I want vars file, tags file and main file >> and all these are refering to the ec2 module!'
    Can we do something like that?

  • @balamurugansethuram701
    @balamurugansethuram701 5 років тому

    Nice presentation. Any reason for "Error: Unknown root level key: provide"

    • @JavaHomeCloud
      @JavaHomeCloud  5 років тому +1

      It is not provide it should be provider

  • @abdulshaikh6807
    @abdulshaikh6807 6 років тому

    Is there any prerequisites to learn this

  • @frankiestroud5523
    @frankiestroud5523 5 років тому

    how do you link this to your AWS account?

    • @JavaHomeCloud
      @JavaHomeCloud  5 років тому

      I've configured aws access key id and secret access key using AWS CLI