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

Поделиться
HTML-код
  • Опубликовано: 3 фев 2025

Комментарии • 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

  • @femiibrahim7645
    @femiibrahim7645 2 года назад

    The best training on modules. Now I understand modules

  • @JavaHomeCloud
    @JavaHomeCloud  6 лет назад

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

  • @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

  • @kkishore025
    @kkishore025 Год назад +1

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

  • @kappaj01
    @kappaj01 5 лет назад +9

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

  • @orazor777
    @orazor777 2 года назад +1

    Top notch instructor.

  • @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!

  • @duranjimerson7349
    @duranjimerson7349 2 года назад +1

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

  • @maxsterling9908
    @maxsterling9908 2 года назад +1

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

  • @supoakinleye1864
    @supoakinleye1864 3 года назад

    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 😍😀

  • @maheshpawar4557
    @maheshpawar4557 Год назад +1

    Very Nicely explained. Thanks you Sir.

  • @ventin75
    @ventin75 Год назад +1

    Finally i understand how to use modules.

  • @kamalbahadur007
    @kamalbahadur007 2 года назад

    Found this video just at the right time. Thanks.

  • @udaypatel83
    @udaypatel83 5 лет назад +2

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

  • @Mrnw10
    @Mrnw10 3 года назад +2

    Great job Hari!

  • @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 :)

  • @pathakajit
    @pathakajit 6 лет назад +2

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

  • @slimflex1
    @slimflex1 3 года назад +1

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

  • @ayushsitoke2456
    @ayushsitoke2456 3 года назад +1

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

  • @jagdishbelapure7521
    @jagdishbelapure7521 3 года назад +2

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

  • @rakesh989
    @rakesh989 4 года назад +1

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

  • @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.

  • @arthursingleton2236
    @arthursingleton2236 4 года назад +1

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

  • @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

  • @kappaj01
    @kappaj01 5 лет назад +11

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

  • @nzalex1
    @nzalex1 4 года назад

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

  • @KrystianKunowski
    @KrystianKunowski Год назад +1

    Good video because focus on practical approach.

  • @ck-mj7zz
    @ck-mj7zz 3 года назад +1

    Thanks for the details. Very helpful

  • @steveaustin6608
    @steveaustin6608 3 года назад

    Thank you so much, clear & precise

  • @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

  • @yogithakakarla1716
    @yogithakakarla1716 3 года назад +1

    Useful knowledge article

  • @joostmiddeljans9215
    @joostmiddeljans9215 2 года назад

    This is such a good explenation, well done!

  • @unknownperson3066
    @unknownperson3066 3 года назад

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

  • @Hackenbaker
    @Hackenbaker 5 лет назад +2

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

  • @frankiestroud5523
    @frankiestroud5523 5 лет назад +1

    very good explanation and demonstration

  • @durbabanik3372
    @durbabanik3372 4 года назад +1

    Extremely nice video.thanks

  • @rritsoftwaresolutions9566
    @rritsoftwaresolutions9566 2 года назад

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

  • @AdekunleLawal
    @AdekunleLawal 5 лет назад +2

    Very clearly explained. 👏🏿👏🏿👏🏿

  • @romeo9460
    @romeo9460 4 года назад +1

    Excellent explanation.. 👏

  • @87rushi
    @87rushi 6 лет назад +5

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

  • @mangeshxjoshi
    @mangeshxjoshi 5 лет назад +1

    Excellent explanation , thank sir

  • @adityaprasad6589
    @adityaprasad6589 6 лет назад

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

  • @vamsikrishna2330
    @vamsikrishna2330 4 года назад +1

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

  • @srinivasanrajagopalan3140
    @srinivasanrajagopalan3140 5 лет назад +1

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

  • @srigeetha3004
    @srigeetha3004 4 года назад +1

    Nice explanation , Thank you ,

  • @RyanUsesThisChannel
    @RyanUsesThisChannel 6 лет назад +3

    Exactly what I needed. Thanks!

  • @sasikanth9179
    @sasikanth9179 4 года назад +2

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

  • @bhushandhande4666
    @bhushandhande4666 3 года назад +1

    excellent content!!

  • @Dongdot123
    @Dongdot123 5 лет назад +3

    This is a very good video. Thanks

  • @mahavishnu_ramakrishnan
    @mahavishnu_ramakrishnan 5 лет назад +1

    Thanks for the video. Much helpful

  • @prashantragade7739
    @prashantragade7739 4 года назад +1

    Thank you sir , very informative video

  • @PradeepKumar-jh2gn
    @PradeepKumar-jh2gn Год назад

    Good work! Thank you!

  • @NANINANI-ix6uf
    @NANINANI-ix6uf 3 года назад +1

    super explanation..

  • @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

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

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

  • @adk-e2s
    @adk-e2s 7 месяцев назад +1

    Ty

  • @moragas8299
    @moragas8299 2 года назад

    thanks very good tutorial

  • @PruthviReddyLokasani
    @PruthviReddyLokasani 4 года назад +1

    Very useful

  • @romaoatila
    @romaoatila 4 года назад +1

    What excelent content! Thanks a lot!

  • @rakyrstsdsss771
    @rakyrstsdsss771 Год назад

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

  • @deadsoulrising
    @deadsoulrising 4 года назад +1

    Very usefull vídeo, thank you

  • @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.

  • @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.

  • @YouTubers-rj9xv
    @YouTubers-rj9xv 3 года назад +1

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

  • @prashantpokhriyal6308
    @prashantpokhriyal6308 3 года назад

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

  • @cstflyer
    @cstflyer 3 года назад +1

    This is a good course!!

  • @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?

  • @haalandgold3097
    @haalandgold3097 4 года назад

    You are the guy! Thx!!!

  • @bhaskarreddy3743
    @bhaskarreddy3743 5 лет назад +1

    Awesome 👍

  • @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?

  • @aruna8782
    @aruna8782 4 года назад

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

  • @pritykumari5265
    @pritykumari5265 5 лет назад

    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

  • @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 4 года назад

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

  • @shivpatil1315
    @shivpatil1315 2 года назад

    excellent!!

  • @chetangokhale2592
    @chetangokhale2592 4 года назад

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

  • @sandv2902
    @sandv2902 2 года назад

    Sir can u do terraform module with latest version

  • @loverebel6632
    @loverebel6632 2 года назад

    very nice , beautiful .

  • @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

  • @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.

  • @jeetucs231
    @jeetucs231 4 года назад

    Amazing

  • @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.

  • @noatec
    @noatec 6 лет назад +1

    Very helpful. Thank You.

  • @Pikachubakinaction
    @Pikachubakinaction 4 года назад

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

  • @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

  • @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

  • @TheMaderDog
    @TheMaderDog 6 лет назад

    Brilliant again, star!

  • @Reddy-by9wf
    @Reddy-by9wf 6 лет назад

    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 6 лет назад +1

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

  • @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.

  • @NuTTyBoY03
    @NuTTyBoY03 6 лет назад

    Nice video....Thank you!

  • @shanmugapriyanm6483
    @shanmugapriyanm6483 5 лет назад

    Really Nice

  • @jeyyu2003
    @jeyyu2003 6 лет назад

    Excellent!

  • @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

  • @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

  • @abdulshaikh6807
    @abdulshaikh6807 6 лет назад

    Is there any prerequisites to learn this

  • @balamurugansethuram701
    @balamurugansethuram701 6 лет назад

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

    • @JavaHomeCloud
      @JavaHomeCloud  6 лет назад +1

      It is not provide it should be provider

  • @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?