Skip to content

Commit

Permalink
docs: improve examples for alidns domain
Browse files Browse the repository at this point in the history
  • Loading branch information
shanye997 committed Dec 23, 2024
1 parent 0843860 commit 0f78949
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
8 changes: 7 additions & 1 deletion website/docs/r/alidns_domain.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,14 @@ Provides a Alidns domain resource.
resource "alicloud_alidns_domain_group" "default" {
domain_group_name = "tf-example"
}
resource "random_integer" "default" {
min = 10000
max = 99999
}
resource "alicloud_alidns_domain" "default" {
domain_name = "starmove.com"
domain_name = "starmove-${random_integer.default.result}.abc"
group_id = alicloud_alidns_domain_group.default.id
tags = {
Created = "TF",
Expand Down
8 changes: 7 additions & 1 deletion website/docs/r/alidns_domain_attachment.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@ Provides bind the domain name to the Alidns instance resource.
resource "alicloud_alidns_domain_group" "default" {
domain_group_name = "tf-example"
}
resource "random_integer" "default" {
min = 10000
max = 99999
}
resource "alicloud_alidns_domain" "default" {
domain_name = "starmove.com"
domain_name = "starmove-${random_integer.default.result}.abc"
group_id = alicloud_alidns_domain_group.default.id
tags = {
Created = "TF",
Expand Down
8 changes: 7 additions & 1 deletion website/docs/r/alidns_record.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,14 @@ Provides a Alidns Record resource. For information about Alidns Domain Record an
resource "alicloud_alidns_domain_group" "default" {
domain_group_name = "tf-example"
}
resource "random_integer" "default" {
min = 10000
max = 99999
}
resource "alicloud_alidns_domain" "default" {
domain_name = "starmove.com"
domain_name = "starmove-${random_integer.default.result}.abc"
group_id = alicloud_alidns_domain_group.default.id
tags = {
Created = "TF",
Expand Down

0 comments on commit 0f78949

Please sign in to comment.