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

Поделиться
HTML-код
  • Опубликовано: 22 июл 2024
  • Register for Online Training 👉 bit.ly/3vuBQqb
    This video demonstrated how to define modules and reuse them across different environments like dev and prod,
    and also illustrates cross-module reference
    📞 WhatsApp Us: wa.me/+919886611117
    Instagram / javahomecloud
    LinkedIn / javahomecloud
    Website 👉 javahome.in/
    ✨ Popular Playlist ✨
    AWS Lambda, Python & Boto3 👉 shorturl.at/brx69
    Terraform FAQs 👉 shorturl.at/fuILT
    Jenkins Tutorial 👉 shorturl.at/CKR37
    🏛️ Courses Offer By Java Home Cloud 🏛️
    Courses offered 👉 bit.ly/457HlHc
    📹 Udemy Courses 📹
    Terraform 👉 t.ly/eEv1x
    Boto3 👉 t.ly/IOZIm
    AWS CloudFormation 👉 t.ly/fenbh
    Jenkins 👉 bit.ly/48lDI34
    Subscribe to my Channel / @javahomecloud

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

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

    Finally i understand how to use modules.

  • @kappaj01
    @kappaj01 4 года назад +9

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

  • @velozdesign
    @velozdesign 2 года назад +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!

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

    Top notch instructor.

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

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

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

    The best training on modules. Now I understand modules

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

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

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

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

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

    Very Nicely explained. Thanks you Sir.

  • @SagarSingh-ie8tx
    @SagarSingh-ie8tx 4 года назад +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 :)

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

    One of The Best Devops Videos. 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 года назад +11

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

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

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

    Found this video just at the right time. Thanks.

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

    very simple yet effective explanation.

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

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

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

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

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

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

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

    Great job Hari!

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

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

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

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

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

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

    Thanks to your explanation I can understand the module

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

    Exactly what I needed. Thanks!

  • @user-yy7gw7ct2p
    @user-yy7gw7ct2p 4 года назад +1

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

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

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

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

    Very clearly explained. 👏🏿👏🏿👏🏿

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

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

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

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

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

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

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

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

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

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

    very good explanation and demonstration

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

    Your way of teaching is awesome 😍😀

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

    This is a very good video. Thanks

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

    This is such a good explenation, well done!

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

    Useful knowledge article

  • @user-qs1ok3vw6e
    @user-qs1ok3vw6e 9 месяцев назад +1

    Good video because focus on practical approach.

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

    excellent video. very helpful. Thanks Sir

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

    Thanks for the details. Very helpful

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

    Excellent explanation , thank sir

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

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

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

    Thank you so much, clear & precise

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

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

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

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

    Thanks for the video. Much helpful

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

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

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

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

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

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

    Brilliant again, star!

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

    Nice video....Thank you!

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

    Extremely nice video.thanks

  • @rakyrstsdsss771
    @rakyrstsdsss771 5 месяцев назад

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

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

    Nice explanation , Thank you ,

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

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

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

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

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

    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.

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

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

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

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

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

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

    Excellent!

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

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

    Good work! Thank you!

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

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

    Awesome 👍

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

    Excellent explanation.. 👏

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

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

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

    Very usefull vídeo, thank you

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

    What excelent content! Thanks a lot!

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

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

    This is a good course!!

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

    Really Nice

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

  • @adk-e2s
    @adk-e2s Месяц назад +1

    Ty

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

    thanks very good tutorial

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

    Very useful

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

    You are the guy! Thx!!!

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

    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.

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

    super explanation..

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

    excellent content!!

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

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

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

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

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

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

    Thank you sir , very informative video

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

    excellent!!

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

    Sir can u do terraform module with latest version

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

    Amazing

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

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

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

    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)

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

    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?

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

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

    very nice , beautiful .

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

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

    Very helpful. Thank You.

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

    Is there any prerequisites to learn this

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

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

    how do you link this to your AWS account?

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

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

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

    Hey I have completed my aws want to learn terafrom

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

      Hi Abdul, Please contact +919886611117,
      Thanks
      Hari