alibabacloud-automation / terraform-alicloud-vpc

Terraform module which creates VPC and Subnet resources on Alibaba Cloud.
https://registry.terraform.io/modules/alibaba/vpc/alicloud/latest
MIT License
16 stars 38 forks source link

Support 'resource_group_id' parameter and add README-CN docs. #26

Closed zql-tqy closed 4 years ago

joec4i commented 4 years ago

Hi @zql-tqy @xiaozhu36 I'm seeing this after upgrading to 1.8.0 . Can you please have a look?

Error: Missing resource instance key

  on .terraform/modules/network.vpc/terraform-alicloud-vpc-1.8.0/outputs.tf line 54, in output "this_resource_group_id":
  54:   value       = alicloud_vpc.vpc.resource_group_id

Because alicloud_vpc.vpc has "count" set, its attributes must be accessed on
specific instances.

For example, to correlate with indices of a referring resource, use:
    alicloud_vpc.vpc[count.index]

Thanks!

zql-tqy commented 4 years ago

@joec4i I'm very sorry that this is my mistake, thank you for your problem, this problem has been fixed.