Closed polidori7 closed 4 years ago
@polidori7 Thanks for raising, it looks like a syntax error. Lists of objects can be created with repeated blocks, using this structure:
service {
key = "value"
}
service {
key = "value"
}
Obviously, the documentation gives an outdated usage , and we will correct these mistakes.
I followed this guide https://github.com/terraform-providers/terraform-provider-huaweicloudstack and test again create an AS group module using the latest huaweicloudstack provider version with Huawei Cloud Stack 6.5.1 but failed again:
As you can see, I received a message AS.2013 (invalid subnet, but before to input the value, I double checked the subnet information through huawei cloudstack networking subnet_v2 module. I tried huawei cloudstack networking subnet_v2.xxxx.id, ID directly.
version
@polidori7 Maybe you can use the id of network, the format likes huaweicloudstack_networking_network_v2.xxx.id
and the version of huaweicloudstack provider maybe not the latest, it should be: + provider.huaweicloudstack v1.1.0 Please have a check, thanks.
Friend,
As you can see, now I'm using this version + provider.huaweicloudstack v1.1.0 but the same issue is happening to create AS group.
I already tested using new terraform verison 0.12.20 and the same issue happen.
Best Regards
@henriquepolidori please try to use huaweicloudstack_networking_network_v2.xxx.id instead.
Friend,
Now I was able to create AS group. Very Good, but when I tried to destroy the environment I receive this message below:
Should I close this ticket and open new one or Is there a relationship in use AS group using huaweicloudstack_networking_network_v2.xxx.id with this error ?
Opening a new issue will be better.
BTW, you can also give the error message in text format, thanks.
thanks
Using huaweicloudstack_as_group_v1 module show an error message describing that arguments "networks" and "security_groups" are not expected to happen inside the block but on documentation says: "networks" and "security_groups" are required information.