terraform-ibm-modules / terraform-ibm-landing-zone-vpc

Creates virtual servers across subnets in a single VPC connected by a single security group. Supports floating IP addresses and multiple load balancers.
Apache License 2.0
5 stars 13 forks source link

Update delegated resolver support and examples #695

Open vburckhardt opened 10 months ago

vburckhardt commented 10 months ago

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.

ocofaigh commented 10 months ago

1.61.0 is out now

rajatagarwal-ibm commented 9 months ago

Context:

rajatagarwal-ibm commented 9 months ago

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

https://github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vpc/tree/main/examples/hub-spoke-delegated-resolver

toddgiguere commented 7 months ago

While updating the examples we should also investigate a new requirement for auth policy: #757