...
Terraform Configuration Templates for Added Resources
...
Info |
---|
This guide does not describe how to import pre-existing resources into Terraform. See Terraform documentation/tutorial for how-to and concepts: Import Terraform Configuration |
Generally, you will take these steps:
- Add the configuration below to your Terraform configuration.
- Edit/customize the added configuration below to match reality.
- Import the resources into your Terraform state. (See comments in the .tf files below for specific import commands.)
- Continue to edit/customer the configuration below until a terraform plan doesn't result in Terraform wanting to make any changes.
...
This Terraform configuration will need minor edits to correspond to the resources in your VPC.
Terraform configuration | utility-resources.tf |
---|
Route Table Resources
This Terraform configuration is a super basic template of the v2 Route Table resources added to customer VPCs. You will generally want to take one of two approaches:
- Start with the template below and copy/paste/edit to get to a Terraform configuration that matches reality.
- OR - - Copy the pre-existing Terraform configuration for your route tables and add elements from the Terraform template below, to get to a Terraform configuration that matches reality.
Terraform template | route-tables.tf |
---|
References
...