Merge pull request #33274 from davendu/main

docs/backends/cos: add necessary permission list for using the backend
This commit is contained in:
Rose M Koron 2023-06-16 10:35:18 -07:00 committed by GitHub
commit 66e3c20b18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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). Storing your state in a COS bucket requires the following permissions:
- `CreateTag`, `DeleteTag`, and `DescribeTags` on the tag key `tencentcloud-terraform-lock`
- `Put`, `Get`, and `Delete` files for the specified bucket's prefix
~> **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.