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

could not get all domain name #702

Closed
codepkgs opened this issue Jan 22, 2019 · 2 comments
Closed

could not get all domain name #702

codepkgs opened this issue Jan 22, 2019 · 2 comments

Comments

@codepkgs
Copy link

Terraform Version

Terraform v0.11.10

  • provider.alicloud v1.29.0

Affected Resource(s)

  • data.alicloud_dns_domains

Terraform Configuration Files

data "alicloud_dns_domains" "all_domains" {
    domain_name_regex = ".*"
    output_file = "domains.txt"
}

output "all_domains" {
    value = ["${data.alicloud_dns_domains.all_domains.domains.*.domain_name}"]
}

Debug Output

the output as follow:

all_domains = [
3
]

Panic Output

If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the crash.log.

Expected Behavior

I want to get all domain name, not the number of domain name.

Actual Behavior

get the number of domain name

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply

Important Factoids

Are there anything atypical about your accounts that we should know? For example: Running in EC2 Classic? Custom version of OpenStack? Tight ACLs?

References

Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:

@xiaozhu36
Copy link
Member

HI @x-hezhang Can you have a try based on the following:

data "alicloud_dns_domains" "all_domains" {
    domain_name_regex = ".*"
    output_file = "domains.txt"
}

output "all_domains" {
    value = ["${data.alicloud_dns_domains.all_domains.domains}"]
}

@xiaozhu36
Copy link
Member

Closed by no reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants