Skip to main content
版本:预览版

阿里云 REMOTE-BACKEND

描述

Deploy remote backend storage in Aliyun based on Terraform module。

参数说明

名称描述类型是否必须默认值
backend_oss_bucketName of OSS bucket prepared to hold your terraform state(s). If not set, the module will craete one with prefix terraform-remote-backendstringfalse
backend_ots_lock_instanceThe name of OTS instance to which table belongs。stringfalse
backend_ots_lock_tableOTS table to hold state lock when updating. If not set, the module will craete one with prefix terraform-remote-backendstringfalse
create_backend_bucketBoolean. If you have a OSS bucket already, use that one, else make this true and one will be created。boolfalse
create_ots_lock_instanceBoolean: If you have a OTS instance already, use that one, else make this true and one will be created。boolfalse
create_ots_lock_tableBoolean: If you have a ots table already, use that one, else make this true and one will be created。boolfalse
encrypt_stateBoolean. Whether to encrypt terraform state。boolfalse
regionThe region used to launch this module resources。stringfalse
state_aclCanned ACL applied to bucket。stringfalse
state_nameThe name of the state file. Examples: dev/tf.state, dev/frontend/tf.tfstate, etc.。stringfalse
state_pathThe path directory of the state file will be stored. Examples: dev/frontend, prod/db, etc.。stringfalse
writeConnectionSecretToRefThe secret which the cloud resource connection will be written to。writeConnectionSecretToReffalse

writeConnectionSecretToRef

名称描述类型是否必须默认值
nameThe secret name which the cloud resource connection will be written to。stringtrue
namespaceThe secret namespace which the cloud resource connection will be written to。stringfalse