Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: improve examples for alidns domain #8013

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading