Skip to content

tf-cloud-modules/terraform-sbercloud-css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sbercloud CSS Terraform module

How to Configure Terraform for Sbercloud

export SBC_ACCESS_KEY="xxxx-xxx-xxx"
export SBC_SECRET_KEY="xxxx-xxx-xxx"

Provider configuration

provider "sbercloud" {
  auth_url = "https://iam.ru-moscow-1.hc.sbercloud.ru/v3"
  region   = "ru-moscow-1"
}

Usage

module "css" {
    source  = "tf-cloud-modules/css/sbercloud"

    name            = "css-test"
    engine_version  = "7.10.2"
    expect_node_num = 1
    password        = "your$trongP@ssWord1241"

    node_config = [
    {
        availability_zone = "ru-moscow-1a"
        flavor            = "ess.spec-4u8g"

        network_info = [{
        security_group_id = "8d485ffa-3a2e-44d0-9b84-337b9a412c8b"
        subnet_id         = "a9a83f7e-b47a-4fb5-a61e-0a13a552c178"
        vpc_id            = "9a2628cc-e82b-4611-bad7-aabcc6e5ba66"
        }]
        volume = [{
        volume_type = "HIGH"
        size        = 40
        }]
    }
  ]

    backup_strategy = [
    {
        start_time = "00:00 GMT+08:00"
        keep_days  = 7
    }
  ]
}

Requirements

Name Version
terraform >= 0.13.1
sbercloud >= 1.9.0, < 2.0.0

Providers

Name Version
sbercloud 1.10.0

Modules

No modules.

Resources

Name Type
sbercloud_css_cluster.this resource

Inputs

Name Description Type Default Required
backup_strategy Specifies the advanced backup policy. list(any) [] no
create Controls if resources should be created. bool true no
engine_type Engine type. string null no
engine_version Engine version. string n/a yes
expect_node_num Number of cluster instances. string null no
name Cluster name. string n/a yes
node_config Node configuration. list(any) n/a yes
password Password of the cluster administrator admin in security mode. string null no
region The region in which to create the cluster resource. string null no
security_mode Whether to enable communication encryption and security authentication. bool null no
tags The key/value pairs to associate with the cluster. map(string) {} no

Outputs

Name Description
endpoint Indicates the IP address and port number.
id Specifies a resource ID in UUID format.
password Password of the cluster administrator admin in security mode.