From the course: AWS Global Networking in Terraform

Unlock this course with a free trial

Join today to access over 24,600 courses taught by industry experts.

Demo: De-provision Transit Gateway architecture

Demo: De-provision Transit Gateway architecture

From the course: AWS Global Networking in Terraform

Demo: De-provision Transit Gateway architecture

- In this next demonstration, we are going to prepare the way for us to set up our VPC peering. But in order to do that, we need to de-provision all of the Transit Gateway infrastructure that was connecting our networks together. So let's go ahead and go into global/prod/main and transit-gateway-peering. And we're going to do a terraform destroy because it's okay for us to get rid of everything. Transit gateways, VPC attachments, peering attachments, transit gateway route tables, VPC subnet route tables, all of the 63 resources need to be removed. And as we go through this, in most cases it's going to do the reverse order of when we did the provisioning part. There are some things that might be able to be removed immediately, like subnet route table entries on the VPCs. But where the majority of the time is going to be taken is with the removal of the transit gateway peering attachments, the transit gateway VPC attachments and the transit gateways themselves. And it does look like…

Contents