Open chanind opened 4 years ago
HI @chanind Thanks for your suggestion. But I don't think that making it required is good idea because of it can not be sync with product. The PR #1977 has fixed it and if vswitch_id
is not set, the default will be returned.
If you create a
alicloud_vpn_gateway
and don't setvswitch_id
, then a randomvswitch_id
is assigned. Then on the next run, Terraform tries to setvswitch_id
back tonull
, which causes thealicloud_vpn_gateway
resource to be recreated. This then happens forever on every run.The easiest solution would be to just mark
vswitch_id
asrequired
instead ofoptional
.Terraform Version
Terraform: 0.12.17 Alicloud: 1.64.0
Affected Resource(s)