forked from cloudquery/terraform-aws-cloudquery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
114 lines (97 loc) · 2.99 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
variable "name" {
description = "Name to use on all resources created (VPC, RDS, etc)"
type = string
default = "cloudquery"
}
variable "tags" {
description = "A map of tags to use on all resources"
type = map(string)
default = {}
}
#---------------------------------------------------
# HELM
#---------------------------------------------------
variable "install_helm_chart" {
description = "Enable/Disable helm chart installation"
type = bool
default = true
}
variable "chart_version" {
description = "The version of CloudQuery helm chart"
type = string
default = "0.2.6"
}
variable "config_file" {
description = "Path to the CloudQuery config.hcl"
type = string
default = ""
}
variable "chart_values" {
description = "Variables to pass to the helm chart"
type = string
default = ""
}
#---------------------------------------------------
# VPC
#---------------------------------------------------
variable "vpc_id" {
description = "ID of an existing VPC where resources will be created"
type = string
default = null
}
variable "public_subnet_ids" {
description = "A list of IDs of existing public subnets inside the VPC"
type = list(string)
default = []
}
variable "database_subnet_group" {
description = "If vpc_id is specified, path the subnet_group name where the RDS should reside"
type = string
default = ""
}
#---------------------------------------------------
# RDS
#---------------------------------------------------
variable "postgres_engine_version" {
description = "Version of Amazon RDS Postgres engine to use"
type = string
default = "13.6"
}
variable "postgres_family" {
description = "Family of Amazon RDS Postgres engine to use"
type = string
default = "aurora-postgresql13"
}
variable "postgres_instance_class" {
description = "Postgresql Instance Class"
type = string
default = "db.t3.medium"
}
variable "publicly_accessible" {
description = "Make RDS publicly accessible (might be needed if you want to connect to it from Grafana or other tools)."
type = bool
default = false
}
variable "allowed_cidr_blocks" {
description = "If RDS is publicly accessible it is highly advised to specify allowed cidrs from where you are planning to connect"
type = list(string)
default = []
}
#---------------------------------------------------
# EKS
#---------------------------------------------------
variable "cluster_version" {
description = "Kubernetes `<major>.<minor>` version to use for the EKS cluster (i.e.: `1.21`)"
type = string
default = "1.22"
}
#---------------------------------------------------
# role_policy_arns
#---------------------------------------------------
variable "role_policy_arns" {
description = "Policies for the role to use for the EKS service account"
type = list(string)
default = [
"arn:aws:iam::aws:policy/ReadOnlyAccess"
]
}