aliyun / terraform-provider-alicloud

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

Terraform provider manual imcomplete #7388

Open Auditore8 opened 3 weeks ago

Auditore8 commented 3 weeks ago

AliCloud terraform documents missing important guidance for the attributes.

Eg: In Cloud Monitor console, we could choose Auto Scaling as push channel when create alert rule.

image-2024-6-14_15-26-5 (1)

In Cloud Monitor terraform module documentation, "targets" represents the "push channel". The current explanation lacks clarity in establishing this equivalence, and users may not readily understand that they are the same concept. Furthermore, there is insufficient guidance on how to configure the sub-attributes of "targets." And for "auto scaling rule", there is no arn attribute. After consulting with support, we know that the "arn" must follow the format "acs:ess:::scalingGroupId/:scalingRuleId/".

image-2024-6-14_15-28-48

Reference:https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/cms_alarm

simonrainerbohmer commented 1 week ago

Created a PR for this issue to enhance the documentation.