|
| 1 | +variable "ibmcloud_api_key" { |
| 2 | + type = string |
| 3 | + description = "The IBM Cloud API Key" |
| 4 | + sensitive = true |
| 5 | +} |
| 6 | + |
| 7 | +variable "region" { |
| 8 | + type = string |
| 9 | + description = "Region to provision all resources created by this example" |
| 10 | + default = "us-south" |
| 11 | +} |
| 12 | + |
| 13 | +variable "resource_tags" { |
| 14 | + type = list(string) |
| 15 | + description = "Optional list of tags to be added to created resources" |
| 16 | + default = [] |
| 17 | +} |
| 18 | + |
| 19 | +variable "prefix" { |
| 20 | + type = string |
| 21 | + description = "Prefix to append to all resources created by this example" |
| 22 | + default = "fs-cloud" |
| 23 | +} |
| 24 | + |
| 25 | +variable "resource_group" { |
| 26 | + type = string |
| 27 | + description = "An existing resource group name to use for this example, if unset a new resource group will be created" |
| 28 | + default = null |
| 29 | +} |
| 30 | + |
| 31 | +variable "existing_kms_instance_guid" { |
| 32 | + description = "The GUID of the Hyper Protect Crypto service in which the key specified in var.kms_key_crn is coming from" |
| 33 | + type = string |
| 34 | +} |
| 35 | + |
| 36 | +variable "kms_key_crn" { |
| 37 | + type = string |
| 38 | + description = "The root key CRN of a Hyper Protect Crypto Service (HPCS) that you want to use for disk encryption. See https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-hpcs&interface=ui for more information on integrating HPCS with RabbitMQ instance." |
| 39 | +} |
| 40 | + |
| 41 | +variable "rabbitmq_version" { |
| 42 | + type = string |
| 43 | + description = "The version of RabbitMQ to deploy. If no value passed, the current ICD preferred version is used." |
| 44 | + default = null |
| 45 | +} |
| 46 | + |
| 47 | +variable "auto_scaling" { |
| 48 | + type = object({ |
| 49 | + disk = object({ |
| 50 | + capacity_enabled = optional(bool, false) |
| 51 | + free_space_less_than_percent = optional(number, 10) |
| 52 | + io_above_percent = optional(number, 90) |
| 53 | + io_enabled = optional(bool, false) |
| 54 | + io_over_period = optional(string, "15m") |
| 55 | + rate_increase_percent = optional(number, 10) |
| 56 | + rate_limit_mb_per_member = optional(number, 3670016) |
| 57 | + rate_period_seconds = optional(number, 900) |
| 58 | + rate_units = optional(string, "mb") |
| 59 | + }) |
| 60 | + memory = object({ |
| 61 | + io_above_percent = optional(number, 90) |
| 62 | + io_enabled = optional(bool, false) |
| 63 | + io_over_period = optional(string, "15m") |
| 64 | + rate_increase_percent = optional(number, 10) |
| 65 | + rate_limit_mb_per_member = optional(number, 114688) |
| 66 | + rate_period_seconds = optional(number, 900) |
| 67 | + rate_units = optional(string, "mb") |
| 68 | + }) |
| 69 | + }) |
| 70 | + description = "Optional rules to allow the database to increase resources in response to usage. Only a single autoscaling block is allowed. Make sure you understand the effects of autoscaling, especially for production environments. See https://cloud.ibm.com/docs/messages-for-rabbitmq?topic=messages-for-rabbitmq-autoscaling in the IBM Cloud Docs." |
| 71 | + default = null |
| 72 | +} |
| 73 | + |
| 74 | +variable "service_credential_names" { |
| 75 | + description = "Map of name, role for service credentials that you want to create for the database" |
| 76 | + type = map(string) |
| 77 | + default = {} |
| 78 | +} |
| 79 | + |
| 80 | +variable "endpoints" { |
| 81 | + description = "Endpoints available to the database instance (public, private, public-and-private)" |
| 82 | + type = string |
| 83 | + default = "private" |
| 84 | +} |
| 85 | + |
| 86 | +variable "tags" { |
| 87 | + type = list(any) |
| 88 | + description = "Optional list of tags to be added to the RabbitMQ instance." |
| 89 | + default = [] |
| 90 | +} |
| 91 | + |
| 92 | +variable "access_tags" { |
| 93 | + type = list(string) |
| 94 | + description = "A list of access tags to apply to the rabbitmq instance created by the module, see https://cloud.ibm.com/docs/account?topic=account-access-tags-tutorial for more details" |
| 95 | + default = [] |
| 96 | +} |
0 commit comments