aliyun / terraform-provider-alicloud

Terraform AliCloud provider
https://www.terraform.io/docs/providers/alicloud/
Mozilla Public License 2.0
589 stars 553 forks source link

alicloud_mongo_instances data has empty mongos list #612

Closed chanind closed 5 years ago

chanind commented 5 years ago

I have a mongo DB instance on alicloud which has 2 nodes in replica mode. When I try to load this info via alicloud_mongo_instances it loads data about the mongo instance but the list of nodes under mongos is empty. In my state file I see the following, which is incorrect:

"instances.0.mongos.#": "0",

Without being able to load any info about the replica nodes I can't construct a mongo URL for my services to use.

Terraform Version

Terraform v0.11.11 provider.alicloud v1.26.0

Affected Resource(s)

Please list the resources as a list, for example:

Terraform Configuration Files

data "alicloud_mongo_instances" "example" {
  name_regex = "test"
}
ajenpan commented 5 years ago

https://github.com/terraform-providers/terraform-provider-alicloud/pull/1107

xiaozhu36 commented 5 years ago

HI @chanind This issue has been fixed by 1.42.0. Please check it.