Stores the state as an object in a configurable prefix in a given bucket on Tencent Cloud Object Storage (COS). This backend supports state locking. Warning! It is highly recommended that you enable Object Versioning on the COS bucket to allow for state recovery in the case of accidental deletions and human error. Read more about this backend in the Terraform docs: https://developer.hashicorp.com/terraform/language/settings/backends/cosDocumentation Index
Fetch the complete documentation index at: https://cdktn.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
Initializer
Properties
| Name | Type | Description |
|---|---|---|
bucket | java.lang.String | (Required) The name of the COS bucket. |
accelerate | java.lang.Boolean | (Optional) Whether to enable global Acceleration. |
acl | java.lang.String | (Optional) Object ACL to be applied to the state file, allows private and public-read. |
assumeRole | CosBackendAssumeRole | (Optional) The assume_role block. |
domain | java.lang.String | (Optional) The root domain of the API request. |
encrypt | java.lang.Boolean | (Optional) Whether to enable server side encryption of the state file. |
endpoint | java.lang.String | (Optional) The Custom Endpoint for the COS backend. |
key | java.lang.String | (Optional) The path for saving the state file in bucket. |
prefix | java.lang.String | (Optional) The directory for saving the state file in bucket. |
region | java.lang.String | (Optional) The region of the COS bucket. |
secretId | java.lang.String | (Optional) Secret id of Tencent Cloud. |
secretKey | java.lang.String | (Optional) Secret key of Tencent Cloud. |
securityToken | java.lang.String | (Optional) TencentCloud Security Token of temporary access credentials. |
bucketRequired
- Type: java.lang.String
accelerateOptional
- Type: java.lang.Boolean
aclOptional
- Type: java.lang.String
assumeRoleOptional
- Type: CosBackendAssumeRole
domainOptional
- Type: java.lang.String
encryptOptional
- Type: java.lang.Boolean
endpointOptional
- Type: java.lang.String
keyOptional
- Type: java.lang.String
prefixOptional
- Type: java.lang.String
regionOptional
- Type: java.lang.String
secretIdOptional
- Type: java.lang.String
secretKeyOptional
- Type: java.lang.String
securityTokenOptional
- Type: java.lang.String