-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
71 lines (62 loc) · 1.84 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
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
# ------------------------------------------------------------------------------
# REQUIRED PARAMETERS
# These variables must be set when using this module.
# ------------------------------------------------------------------------------
variable "cloud_provider" {
description = <<-EOT
(Required) The cloud provider (aws or gcp)
ex:
```
cloud_provider = "aws"
```
EOT
type = string
validation {
condition = (
var.cloud_provider == "aws" || var.cloud_provider == "gcp"
)
error_message = "The cloud_provider only allows `aws` or `gcp`"
}
}
variable "kubernetes_cluster_name" {
type = string
description = <<-EOT
(Optional) The name of the Kubernetes cluster.
ex:
```
kubernetes_cluster_name = "my-cluster"
```
EOT
default = null
}
# ------------------------------------------------------------------------------
# OPTIONAL PARAMETERS
# These variables have defaults, but may be overridden.
# ------------------------------------------------------------------------------
# ------------------
# AWS Related
# ------------------
variable "aws_dataplane_role_arn" {
description = <<-EOT
(Optional) The ARN of the AWS IAM role that will be used by the EKS cluster to access AWS services.
Required if `cloud_provider` is set to `aws`.
ex:
```
aws_dataplane_role_arn = "arn:aws:iam::123456789012:role/my-eks-dataplane-role"
```
EOT
type = string
default = null
}
variable "aws_controlplane_role_arn" {
description = <<-EOT
(Optional) The ARN of the AWS IAM role that will be used by the EKS cluster to access AWS services.
Required if `cloud_provider` is set to `aws`.
ex:
```
aws_controlplane_role_arn = "arn:aws:iam::123456789012:role/my-eks-controlplane-role"
```
EOT
type = string
default = null
}