Skip to content

Commit

Permalink
using terraform alidns resource instead of dns resource because of de…
Browse files Browse the repository at this point in the history
…precation of dns resource in terraform provider
  • Loading branch information
hamidostad committed Dec 16, 2024
1 parent a5b4b69 commit 719350f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/GoogleCloudPlatform/terraformer

go 1.22
go 1.22.0

require (
cloud.google.com/go v0.110.2 // indirect
Expand Down
6 changes: 3 additions & 3 deletions providers/alicloud/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func resourceFromDomain(domain alidns.DomainInDescribeDomains) terraformutils.Re
return terraformutils.NewResource(
domain.DomainName, // id
domain.DomainId+"__"+domain.DomainName, // nolint
"alicloud_dns",
"alicloud_alidns_domain",
"alicloud",
map[string]string{},
[]string{},
Expand All @@ -40,9 +40,9 @@ func resourceFromDomain(domain alidns.DomainInDescribeDomains) terraformutils.Re

func resourceFromDomainRecord(record alidns.Record) terraformutils.Resource {
return terraformutils.NewResource(
record.RecordId, // nolint
record.RecordId, // id
record.RecordId+"__"+record.DomainName, // nolint
"alicloud_dns_record",
"alicloud_alidns_record",
"alicloud",
map[string]string{},
[]string{},
Expand Down

0 comments on commit 719350f

Please sign in to comment.