Skip to content

Commit

Permalink
fix(PDNS): removal of custom resolver location resource. (#5915)
Browse files Browse the repository at this point in the history
* fix(PDNS): removal of custom resolver location resource.

* change variable's location
  • Loading branch information
arjunchauhanibm authored Jan 21, 2025
1 parent 9d1a10a commit d912364
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 339 deletions.
8 changes: 0 additions & 8 deletions examples/ibm-private-dns/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,6 @@ output "ibm_dns_custom_resolvers_output" {
value = data.ibm_dns_custom_resolvers.test-cr.custom_resolvers
}

resource "ibm_dns_custom_resolver_location" "test" {
instance_id = ibm_resource_instance.test-pdns-instance.guid
resolver_id = ibm_dns_custom_resolver.test.custom_resolver_id
subnet_crn = "crn:v1:staging:public:is:us-south-1:a/01652b251c3ae2787110a995d8db0135::subnet:0716-a094c4e8-02cd-4b04-858d-343"
enabled = true
cr_enabled = true
}

resource "ibm_dns_custom_resolver_forwarding_rule" "test" {
instance_id = ibm_resource_instance.test-pdns-instance.guid
resolver_id = ibm_dns_custom_resolver.test.custom_resolver_id
Expand Down
1 change: 0 additions & 1 deletion ibm/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -1450,7 +1450,6 @@ func Provider() *schema.Provider {

// Added for Custom Resolver
"ibm_dns_custom_resolver": dnsservices.ResourceIBMPrivateDNSCustomResolver(),
"ibm_dns_custom_resolver_location": dnsservices.ResourceIBMPrivateDNSCRLocation(),
"ibm_dns_custom_resolver_forwarding_rule": dnsservices.ResourceIBMPrivateDNSForwardingRule(),
"ibm_dns_custom_resolver_secondary_zone": dnsservices.ResourceIBMPrivateDNSSecondaryZone(),
"ibm_dns_linked_zone": dnsservices.ResourceIBMDNSLinkedZone(),
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const (
pdnsSecondaryZoneDescription = "description"
pdnsSecondaryZoneCreatedOn = "created_on"
pdnsSecondaryZoneModifiedOn = "modified_on"
pdnsResolverID = "resolver_id"
)

func ResourceIBMPrivateDNSSecondaryZone() *schema.Resource {
Expand Down
131 changes: 0 additions & 131 deletions website/docs/r/dns_custom_resolver_location.html.markdown

This file was deleted.

0 comments on commit d912364

Please sign in to comment.