You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Debug output not provider due to confidentiality of output.
Panic Output
N/A
Expected Behavior
No differences between imported resource and the Terraform file.
This is expected because the output from retrieving the route table directly contains the route-type and cidr-block. oci network route-table get --rt-id ocid1.routetable.oc1.us-chicago-1.id | jq '.data."route-rules"'
cidr-block should be imported as an explicit null value in the state.
route-type should be imported into the state as it has a value.
#2070 documents similar behaviour where RT resources get recreated due to changes in the cidr_block. That issue does not cover the use case of importing RT resources.
The text was updated successfully, but these errors were encountered:
Community Note
Terraform Version and Provider Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Debug output not provider due to confidentiality of output.
Panic Output
N/A
Expected Behavior
No differences between imported resource and the Terraform file.
This is expected because the output from retrieving the route table directly contains the route-type and cidr-block.
oci network route-table get --rt-id ocid1.routetable.oc1.us-chicago-1.id | jq '.data."route-rules"'
cidr-block
should be imported as an explicit null value in the state.route-type
should be imported into the state as it has a value.Actual Behavior
Terraform attempts to recreate the resource due to missing route_type and cidr_block attribute.
Displaying the state shows that the route-type attribute was not imported.
terraform state show oci_core_route_table.minimal
route-type
did not get imported.cidr-type
did not import as an explicit null.Steps to Reproduce
terraform import oci_core_route_table.minimal ocid ocid1.routetable.oc1.us-chicago-1.id
terraform plan
Important Factoids
References
#2070 documents similar behaviour where RT resources get recreated due to changes in the
cidr_block
. That issue does not cover the use case of importing RT resources.The text was updated successfully, but these errors were encountered: