aliyun / terraform-provider-alicloud

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

Add Billing / Expenses Configuration #2766

Open supertom25 opened 4 years ago

supertom25 commented 4 years ago

Hi ,

For the billing (Expenses) setup, there are not yet Terraform resources available. Could you please add modules for this missing pieces?

We are currently configure the "Usage Alarm" manually and also to retrieve those billling related report the same in manual.

as what i aware there already API available for the billing, https://www.alibabacloud.com/help/doc-detail/87975.htm

Thanks,

xiaozhu36 commented 3 years ago

HI @supertom25 I am sorry for the late reply. Can you describe more usage details? I think the apis https://www.alibabacloud.com/help/doc-detail/87975.htm can be supported by datasource, not resource.

supertom25 commented 3 years ago

Hello,

In our usecase, we owned a master account and we have a lot of tenant accounts have to manage. we have similar organization in AWS and we could have a Expense consume alerts with different Serverity.

They are : info: 50% warning: 80%; and critical: 100%.

but this is not appear in Alibaba.

In Alibaba, we only can see 1 alert setting for "Spending" and another alert for Credit limit used. first if we could have terraform resource to have this settings in place and also configure the email contact to alert our tenant customer.

I will check the API if we could use. but since we are doing *full automation to deploy Alibaba account. (which not possible yet since there are few functions is not supprting still). but it will be great if we could manage this part in the Terraform as well. thanks,

Tom