Terraform Tutorial | Import Existing Resources to Terraform

preview_player
Показать описание
Terraform is an Infrastructure as Code tool that allows you to create cloud infrastructure with declarative code. Existing infrastructure can also be imported and brought under Terraform management. This tutorial shows how to import existing Linode infrastructure into Terraform to take advantage of IaC.

Chapters:
0:00 - Intro & Prerequisites
1:37 - Introducing the Import Command
2:40 - Import a Linode to Terraform
7:54 - Import a Domain to Terraform
9:57 - Import a Domain Record to Terraform
12:50 - Import a Volume to Terraform
14:56 - Recap
15:38 - Outro

domain_id = "1157521"

could be replaced with:

#Linode #IaC #Terraform #AlternativeCloud
Product: Linode, Terraform Import, Infrastructure as Code; Sid Palas;
Рекомендации по теме
Комментарии
Автор

Hi, Sid from the video here! 👋

One additional note about the import process:

---

When following along with the video, there are a couple of imported ids that reference other resources. If you replace those with a reference to the resource, it will be easier to manage changes between the two more effectively.

For example in the example_domain_record configuration:

>> domain_id = "1554018"

could be replaced with:

>> domain_id =

DevOpsDirective
Автор

Well presented, I am using AWS but from your explanation feel able to recreate steps to bring AWS resources into IaC Quality content

poppadoesitpropa
Автор

That's amazing. Thank you. Also, can u create a module for a specific resource and based on that module to import existing infrastructure ?

radu
Автор

So it's kind of a pain to import existing resources. Is there any fundamental reason why Terraform couldn't automate this? Maybe not perfectly, but with sensible defaults?

BR-lxpy
Автор

Wouldn't a better practice be to use for the linode_id of the volume? Putting those 8 digits doesn't make it easy to see which server it is actually attached to.

BR-lxpy
Автор

Hello Again,

with linode import I can modify hardware resources, but the node is also running server instances of some applications I want to record in terraform plan, so if I want to duplicate the same instance in different region. How would I do that?

default_youtube_profile
Автор

How can i deploy a EC2 instance to a existing vpc?

acamineronewyork