New and Improved way to Import Resources into Terraform

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

Комментарии • 18

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

    New TF user here. Your video was crystal clear. Was able to follow and understand with any issues. Thanks again.

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

      Great to hear! If you have other questions let me know.

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

      @@letmetechyou What is your criteria for determining what to delete/remove from the main.tf file after running azft export command?
      Just trying to understand what to keep and what to ignore as it relates to the import cmd for skipped entries and in the main.tf My main.tf file has 1000 lines
      I know some modification will be required and the tool is not perfect . Just trying to match my current state in Azure.

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

    Thanks for sharing!!!

  • @donniediamond3934
    @donniediamond3934 7 месяцев назад

    Nice tip! Thanks Just subscribed as well 👍

  • @JaveedNainaramr
    @JaveedNainaramr 11 месяцев назад +1

    Thanks man..!!

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

    Getting the following error: The parsed Resource ID was missing a value for the segment at position 2 (which should be the literal value "resourceGroups").
    The error is coming from the azurerm_kubernetes_cluster import block.
    Is there a fix for this? I get it after running a TF plan.
    Using the new "import block" method.

  • @mayanktripathi4u
    @mayanktripathi4u 10 месяцев назад

    Thanks for this video, it is really helpful. Please do help me how to import multiple resources, as the import and import block is good for single recourse, I am looking for a way to import multiple resources, instead of doing for each single resource. I am not sure if this is feasible and best or not. Please guide.

    • @letmetechyou
      @letmetechyou  10 месяцев назад

      aztfy may be able to help with that ruclips.net/video/oOokX83DqMU/видео.html. You can also checkout the tool called terraformer

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

    I have another question. Is it possible to only import the resources assigned to an AKS Cluster in Azure instead of all the resources govern under the RG? Looking for tool that will ONLY import the resources assigned to the AKS cluster. Or would you suggest that I use import blocks to accomplish that task?

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

      Have you checked out the tool called aztfy or terraformer

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

      @@letmetechyou Yes, I have tried terraformer but it didn't work for me. Had better luck with azft export. It was able to pull resources from the RG of the AKS but also pulled too much resources not associated with the AKS cluster. Guess, I'll need to do a process of elimination. Instead of issuing import block commands. Just keep the resources that I need. Thanks.

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

      yea that is kinda of how i went about it. I just kept the resources that i needed to manage myself.@@lakerfan4life308

  • @ventin75
    @ventin75 7 месяцев назад

    id does not support variables :(

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

    sound is terrible

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

      thanks for the feedback. been improving over time!