cloud-remote-backend
alexanderartamonov/cloud-remote-backend/alibaba
Terraform module to deploy a remote backend storage for Alibaba Cloud terraform-alicloud-remote-backend A terraform module to set up remote state management with OSS backend for your account. It creates an encrypted OSS bucket to store state files and a OTS table for state locking and consistency checking.
Terraform module to deploy a remote backend storage for Alibaba Cloud terraform-alicloud-remote-backend A terraform module to set up remote state management with OSS backend for your account. It creates an encrypted OSS bucket to store state files and a OTS table for state locking and consistency checking. Features - Create a OSS bucket to store remote state files. - Encrypt state files with AES256. - Create a OTS Instance and table for state locking. - Export the final oss-backend template named terraform.tf. Usage You can use this in your terraform template with the following steps. ``hcl module "remote_state" { source = "terraform-alicloud-modules/remote-backend/alicloud" create_backend_bucket = true create_ots_lock_instance = true create_ots_lock_table = true region = "cn-hangzhou" sta
| Name | Type | Description | Default |
|---|---|---|---|
| create_backend_bucket | string | Boolean. If you have a OSS bucket already, use that one, else make this true an | false |
| state_acl | string | Canned ACL applied to bucket. | "private" |
| encrypt_state | string | Boolean. Whether to encrypt terraform state. | true |
| state_name | string | The name of the state file. Examples: dev/tf.state, dev/frontend/tf.tfstate, etc | "terraform.tfstate" |
| region | string | The region used to launch this module resources. | "" |
| create_ots_lock_instance | string | Boolean: If you have a OTS instance already, use that one, else make this true | false |
| backend_ots_lock_table | string | OTS table to hold state lock when updating. If not set, the module will craete o | "" |
| backend_oss_bucket | string | Name of OSS bucket prepared to hold your terraform state(s). If not set, the mod | "" |
| state_path | string | The path directory of the state file will be stored. Examples: dev/frontend, pro | "env:" |
| backend_ots_lock_instance | string | The name of OTS instance to which table belongs. | "tf-oss-backend" |
| create_ots_lock_table | string | Boolean: If you have a ots table already, use that one, else make this true and | false |