Open jianzhiteh opened 4 years ago
Please download the latest terraform and then execute it. It has been fixed
Hi, referring to your console output, you might be running terraform apply
for more than once. If you try on your end, on first terraform apply
to create the MongoDB resource, the output doesn't return the node_id
.
We need the node_id
even for the first run as we are passing the output from this resource creation as input of another module, so getting empty list will fail our following modules. Please observe the attached screenshot.
Thanks!
Hi there, I have encounter some unexpected behaviours on MongoDB resource creation. Based on your documentation(https://www.terraform.io/docs/providers/alicloud/r/mongodb_sharding_instance.html#attributes-reference), Terraform can output the following details on resource creation:
mongo_list
shard_list
However the details of these 2 Terraform outputs are incomplete. Please refer to the "Actual Behavior" below.
Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Debug Output
https://gist.githubusercontent.com/jianzhiteh/57a3f344b148deae3efbdf7f2f017bf6/raw/940f82aede3c6ffb47f608ba129962081882003a/terraform_%2520alicloud_mongodb_sharding_output_bug
Panic Output
nil
Expected Behavior
mongo_list
should returnconnection_string
andnode_id
.shard_list
should returnnode_id
.Actual Behavior
Terraform output
mongo_list
returnsconnection_string
andnode_id
as empty string""
.Terraform output
shard_list
returnsnode_id
as empty string""
.Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Outputs
on the console formongodb_mongos_list
andmongodb_shard_list
.Important Factoids
Nil
References
Nil