Open nepeat opened 1 month ago
PR #2226 made to handle this concern. Awaiting response from the CLA team for approval into the overall corporate CLA.
I am not sure if this is the right solution but it seems if the is_ipv6enabled
flag is set properly, it negates the check for is_oracle_gua_allocation_enabled
Community Note
Terraform Version and Provider Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Not attached due to amount of confidential data.
Panic Output
N/A
Expected Behavior
When importing an already existing VCN with IPv6 enabled and already existing prefixes, I expect that the state would be consistent with the file.
If the actual behaviour is expected, the documentation should state whether or not allowing Terraform to change these states on apply would have any impact on already deployed resources since it is not clear if changes will be made.
Actual Behavior
What actually happens when importing an already existing VCN is that it does the following
is_ipv6enabled
is defaulting to false, despite the existence of IPv6 prefixes and enablement of IPv6 in the VCN.is_oracle_gua_allocation_enabled
does not have a default value, which makes it part of the state that needs to be changed.Steps to Reproduce
tofu import oci_core_vcn.prod-vcn ocid1.vcn.oc1.region.id
terraform plan
Important Factoids
References