cloud-remote-backend

alexanderartamonov/cloud-remote-backend/alibaba

Terraform Module HCL 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.

Install
module "cloud-remote-backend" {
source = "alexanderartamonov/cloud-remote-backend/alibaba"
version = "1.1.0"
}
plain text: /constructs/tfmod-alexanderartamonov-cloud-remote-backend-alibaba/install.txt
⭐ Source on GitHub 📦 Registry page
README

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

Inputs (11)
NameTypeDescriptionDefault
create_backend_bucketstringBoolean. If you have a OSS bucket already, use that one, else make this true anfalse
state_aclstringCanned ACL applied to bucket."private"
encrypt_statestringBoolean. Whether to encrypt terraform state.true
state_namestringThe name of the state file. Examples: dev/tf.state, dev/frontend/tf.tfstate, etc"terraform.tfstate"
regionstringThe region used to launch this module resources.""
create_ots_lock_instancestringBoolean: If you have a OTS instance already, use that one, else make this true false
backend_ots_lock_tablestringOTS table to hold state lock when updating. If not set, the module will craete o""
backend_oss_bucketstringName of OSS bucket prepared to hold your terraform state(s). If not set, the mod""
state_pathstringThe path directory of the state file will be stored. Examples: dev/frontend, pro"env:"
backend_ots_lock_instancestringThe name of OTS instance to which table belongs."tf-oss-backend"
create_ots_lock_tablestringBoolean: If you have a ots table already, use that one, else make this true andfalse
Resources (5)
alicloud_oss_bucketalicloud_ots_instancealicloud_ots_tablelocal_filerandom_uuid
Details
FrameworkTerraform Module
LanguageHCL
Version1.1.0
Cloud ALIBABA
★ Stars0
Forks0
Total downloads474
Inputs11
Resources5
LicenseApache-2.0
Namespacealexanderartamonov
Updated