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

Outputs not working as specified #31

Open SORC3r3r opened 3 years ago

SORC3r3r commented 3 years ago

When trying to use the terraform outputs as specified here, some outputs show no value.

The specification lists following outputs:

cidr_block Description: Deprecated and use this_vpc_cidr_block instead

this_vpc_name Description: The VPC name

this_vpc_cidr_block Description: The VPC cidr block

this_vpc_cidr_block and this_vpc_name do not seem to work at all. They are used in the complete vpc example and are returning following output:

Outputs:

vpc_cidr_block = ""
vpc_name = ""

Using the deprecated cidr_block, I get an output for the cidr, but I did not find a way to get the name into the output:

Outputs:

vpc_cidr_block = "10.10.0.0/16"
vpc_name = ""
Terraform v0.15.4
on darwin_amd64
+ provider registry.terraform.io/aliyun/alicloud v1.124.0
+ provider registry.terraform.io/hashicorp/alicloud v1.124.0