-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
60 lines (51 loc) · 2.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
variable "database_arn" {
type = string
description = "The ARN of the database within Redshift cluster. Required if you are using Redshift provisioned. This is not the cluster ARN, see https://docs.aws.amazon.com/redshift/latest/mgmt/generating-iam-credentials-role-permissions.html for more information."
default = ""
validation {
condition = var.database_arn == "" || can(regex("arn:aws:redshift:[a-z0-9-]+:.*:dbname:[a-z0-9-]+/.+", var.database_arn))
error_message = "The cluster ARN must include 'dbname' name. Ex. arn:aws:redshift:us-west-2:123456789012:dbname:my-cluster/my-database"
}
}
variable "cluster_identifier" {
type = string
description = "The identifier of the Redshift cluster. Required if you are using Redshift provisioned."
default = ""
}
variable "fullstory_cidr_ipv4" {
type = string
description = "The CIDR block that Fullstory will use to connect to the Redshift cluster."
default = ""
}
variable "fullstory_google_audience" {
type = string
description = "The Google audience identifier that Fullstory will use to assume the role in order to call AWS APIs"
default = ""
}
variable "fullstory_data_center" {
type = string
description = "The data center where your Fullstory account is hosted. Either 'NA1' or 'EU1'. See https://help.fullstory.com/hc/en-us/articles/8901113940375-Fullstory-Data-Residency for more information."
default = "NA1"
validation {
condition = var.fullstory_data_center == "NA1" || var.fullstory_data_center == "EU1"
error_message = "The data center must be either 'NA1' or 'EU1'."
}
}
variable "port" {
type = number
description = "The port number where the Redshift cluster is listening."
default = 5439
}
variable "s3_bucket_name" {
type = string
description = "The name of the S3 bucket where the Fullstory bundles are stored."
}
variable "vpc_id" {
type = string
description = "The VPC ID where the Redshift cluster or Redshift Serverless workgroup is deployed."
}
variable "workgroup_arn" {
type = string
description = "The ARN of the Redshift Serverless workgroup. Required if you are using Redshift Serverless."
default = ""
}