Terraform Import Existing Resources AWS (Import VPC, Route53, EC2, Security Group)

preview_player
Показать описание

▬▬▬▬▬ Experience & Location 💼 ▬▬▬▬▬
► I’m a Senior Software Engineer at Juniper Networks (12+ years of experience)
► Located in San Francisco Bay Area, CA (US citizen)

▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬

▬▬▬▬▬▬ Related videos 👨‍🏫 ▬▬▬▬▬▬

Terraform state. We are going to import the following AWS resources:
- terraform aws_vpc
- terraform aws_subnet
- terraform aws_internet_gateway
- terraform aws_eip
- terraform aws_nat_gateway
- terraform aws_route_table
- terraform aws_route_table_association
- terraform aws_security_group
- terraform aws_instance
- terraform aws_route53_zone
- terraform aws_route53_record

=========
⏱️TIMESTAMPS⏱️
0:00 Intro
0:17 Overview of AWS resources to import to Terraform State
0:30 Terraform Import aws_vpc
1:27 Terraform Import aws_subnet
1:41 Terraform Import aws_internet_gateway
2:00 Terraform Import aws_eip
2:15 Terraform Import aws_nat_gateway
2:23 Terraform Import aws_route_table | Terraform Import aws_route_table_association
3:00 Terraform Import aws_security_group
3:16 Terraform Import aws_instance
3:27 Terraform Import aws_route53_zone | Terraform Import aws_route53_record
4:16 Verify that AWS Resources Importer to Terraform State

=========
Source Code

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

A very clear content and straight to the point. Thank you very much.

derekmab
Автор

Класні відео.Чітко і зрозуміло. Дякую.

temohatna
Автор

Amazing content really !!! Short and crisp... Keep doing the good work.

asifahmed
Автор

Amazing quality-content. Much appreciated.

aso
Автор

Nice and straight forward video, well done and thanks for sharing knowledge.

allansilva
Автор

Wow you explained it all in less than 5 min 👍

yuliavasilyeva
Автор

To whom it may concern, I had to use the EIP Allocation ID for two EIPs associated with NAT Gateways, otherwise I would have an EC2-Classic error.

uniqueHandleName
Автор

Great content!!
Can we create code for whole existing infra as hard coded then do some separation for variables

rushikesh_mujumale
Автор

This is a very nice explanation. Can you please, tell me that how can I install prerequired software to deploy my app on AWS using Terraform and then deploy it.

mohammadnman
Автор

I have added the security rule manually using the command aws ec2, however when I run terraform plan on that group it doesn't see any changes it just says infrastructure up to date. I would have expected to see that one manual rule to get destroyed. Is that correct?

flesz_
Автор

Hi Anton,
I have used import for aws_route53_zone..but when i am applying a terraform destroy...its destroying my existing zone too.
How can i create a record in existing zone and only delete those records while applying terraform destroy?

yuktiagrawal
Автор

How do I use existing keypair and security group for creating new ec2?

bongbox
Автор

Is it possible to import all the existing infrastructure with terraform and then create new terraform state file and start maintaining the deployment via terraform?

maheshdolas
Автор

Hi Anton, is there away to import multiple ec2 instances at once

a_yunusa
Автор

Thanks good video. How doI deploy an EC2 instance in a existing VPC?

acamineronewyork
Автор

Hi. Very well explained.
Can i connect with you in LinkedIn?

handsomedevilsbd
Автор

Why import curent infrastructure code? What will you want doing after import and destroy?

amirr
Автор

How can I deploy a resource in an existing resource group without getting an error that resource group already exists or prevent destroy and recreate in azure.

pabitrasikdar
Автор

The confusing part for me is what's on the main.tf file, do I need to copy that or those will automatically generated once you import it?

quickfingers
Автор

Dear Anton, how do I create tf files out of existing infrastructure?

chapaya