-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvariables.tf
More file actions
73 lines (61 loc) · 3.18 KB
/
Copy pathvariables.tf
File metadata and controls
73 lines (61 loc) · 3.18 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
##############################################################################
# Input variables
##############################################################################
variable "ibmcloud_api_key" {
type = string
description = "The IBM Cloud API key needed to deploy IAM-enabled resources."
sensitive = true
}
variable "provider_visibility" {
description = "Set the visibility value for the IBM terraform provider. Supported values are `public`, `private`, `public-and-private`. [Learn more](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/guides/custom-service-endpoints)."
type = string
default = "private"
validation {
condition = contains(["public", "private", "public-and-private"], var.provider_visibility)
error_message = "Invalid visibility option. Allowed values are 'public', 'private', or 'public-and-private'."
}
}
variable "prefix" {
type = string
description = "Prefix for all resources created by this solution."
default = null
}
variable "use_existing_resource_group" {
type = bool
description = "Whether to use an existing resource group."
default = false
}
variable "resource_group_name" {
type = string
description = "The name of a new or an existing resource group to provision resources to. If the `prefix` input is passed, it is added before this value, in the format `<prefix>-value`."
}
variable "cos_instance_name" {
type = string
default = "cos-instance"
description = "The name to use when creating the IBM Cloud Object Storage instance. If the `prefix` input is passed, it is added before this value, in the format `<prefix>-value`."
}
variable "cos_source_bucket_name" {
type = string
default = "source-bucket"
description = "The globally unique name to use for the source Cloud Object Storage bucket. If the `add_bucket_name_suffix` input is set to `true`, a random 4-character string is appended to this name to help ensure that the bucket name is globally unique. If the `prefix` input is passed, it is added before this value, in the format `<prefix>-value`."
}
variable "cos_source_bucket_region" {
type = string
default = "us-south"
description = "The region to provision the source Cloud Object Storage bucket."
}
variable "cos_target_bucket_name" {
type = string
default = "target-bucket"
description = "The globally unique name to use for the target Cloud Object Storage bucket. If the `add_bucket_name_suffix` input is set to `true`, a random 4-character string is appended to this name to help ensure that the bucket name is globally unique. If the `prefix` input is passed, it is added before this value, in the format `<prefix>-value`."
}
variable "cos_target_bucket_region" {
type = string
default = "us-east"
description = "The region to provision the target Cloud Object Storage bucket."
}
variable "add_bucket_name_suffix" {
type = bool
description = "Whether to append a randomly generated 4-character string to the Object Storage bucket names. Set to `false` for full control over the names in the `cos_source_bucket_name` and `cos_target_bucket_name` inputs."
default = true
}