Open vburckhardt opened 10 months ago
1.61.0 is out now
Context:
update_resolver_type
to true (default: false) and execute the second apply, it changes Spoke VPC resolver from “system” to “delegated” update_resolver_type
variable.depends_on
on Hub VPCs custom resolver, which we cannot achieve with just one VPC resource.Potential solutions:
Separate hub and spoke vpc submodule: Another solution is that we can create a hub and spoke VPC submodule, but we are not using the root SLZ VPC module to create VPCs, although we are using the root module for subnets creation.
[ERROR] Error Updating VPC : Delegated VPC is not configured with a custom resolver
I created a POC to test the feature, the apply works fine but when I destroy, it fails with the following error.
Error: [ERROR] Error updating the custom resolver to disable before deleting Not allowed to disable custom resolver on hub VPC which has DNS resolution bindings.:{
We already knew about the limitation when we were running tf apply twice. See this:
In order to perform a successful destroy, please set to the resolver to "system" in the spoke VPC through the UI before issuing the terraform destroy - see https://cloud.ibm.com/docs/vpc?topic=vpc-hub-spoke-configure-dns-resolver&interface=ui
While updating the examples we should also investigate a new requirement for auth policy: #757
Description
The terraform provider limitations mentioned in the README at https://github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vpc/tree/main/examples/hub-spoke-delegated-resolver are being resolved from version 1.61 of the provider (currently in preview at 1.61.0-beta0 ) . This ticket covers the effort to update the module and example to use the re-designed feature in the provider.