New and Improved way to Import Resources into Terraform

preview_player
Показать описание
This is a new and improved way to import resources into terraform. With companies making a transition to the cloud, a lot of manual processes may take place initially. To help speed up the process of bringing existing infrastructure into code, Terraform has now released a new way to import resources directly inside your .tf files.

This video goes over the new terraform import block

import {
to =
id = "
}

ABOUT OUR CHANNEL: My channel covers various topics about networking, automation and cloud technologies . We cover lots of cool stuff such as cisco, terraform, aws, firewalls, security and more

Don’t forget to subscribe!

Рекомендации по теме
Комментарии
Автор

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

lakerfanlife
Автор

Nice tip! Thanks Just subscribed as well 👍

donniediamond
Автор

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.

lakerfanlife
Автор

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.

mayanktripathiu
Автор

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?

lakerfanlife