-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathvariables.tf
36 lines (31 loc) · 1.21 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
########################################################################################################################
# Input Variables
########################################################################################################################
#
# Developer tips:
# - Below are some common module input variables
# - They should be updated for input variables applicable to the module being added
# - Use variable validation when possible
#
variable "name" {
type = string
description = "A descriptive name used to identify the resource instance."
}
variable "plan" {
type = string
description = "The name of the plan type supported by service."
default = "standard"
validation {
condition = contains(["standard", "cos-one-rate-plan"], var.plan)
error_message = "The specified pricing plan is not available. The following plans are supported: 'standard', 'cos-one-rate-plan'"
}
}
variable "resource_group_id" {
type = string
description = "The ID of the resource group where you want to create the service."
}
variable "resource_tags" {
type = list(string)
description = "List of resource tag to associate with the instance."
default = []
}