docs/backends/cos: add necessary permission list for using the backend

This commit is contained in:
davendu 2023-05-28 15:13:45 +08:00
parent bc216caa65
commit ad84baf5ea

View File

@ -9,7 +9,10 @@ description: >-
Stores the state as an object in a configurable prefix in a given bucket on [Tencent Cloud Object Storage](https://intl.cloud.tencent.com/product/cos) (COS).
This backend supports [state locking](/terraform/language/state/locking).
This backend supports [state locking](/terraform/language/state/locking). You need following permissions for your credentials:
* `CreateTag`, `DeleteTag` and `DescribeTags` on the tag key `tencentcloud-terraform-lock`.
* `Put`, `Get` and `Delete` files under the given prefix of the bucket.
~> **Warning!** It is highly recommended that you enable [Object Versioning](https://intl.cloud.tencent.com/document/product/436/19883)
on the COS bucket to allow for state recovery in the case of accidental deletions and human error.