Skip to content

Commit 9dddcc0

Browse files
author
Greg Panula
committed
add a few more parameter group knobs
1 parent 4ba92b6 commit 9dddcc0

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

main.tf

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,30 @@ resource "aws_redshift_parameter_group" "this" {
6161
name = "wlm_json_configuration"
6262
value = "${var.wlm_json_configuration}"
6363
}
64+
65+
parameter {
66+
# ref: https://docs.aws.amazon.com/redshift/latest/mgmt/connecting-ssl-support.html
67+
name = "require_ssl"
68+
value = "${var.require_ssl}"
69+
}
70+
71+
parameter {
72+
name = "use_fips_ssl"
73+
value = "${var.use_fips_ssl}"
74+
}
75+
76+
parameter {
77+
# ref: https://docs.aws.amazon.com/redshift/latest/mgmt/db-auditing.html
78+
name = "enable_user_activity_logging"
79+
value = "${var.enable_user_activity_logging}"
80+
}
81+
82+
parameter {
83+
# ref: https://docs.aws.amazon.com/redshift/latest/dg/r_analyze_threshold_percent.html
84+
name = "analyze_threshold_percent"
85+
value = "${var.analyze_threshold_percent}"
86+
}
87+
6488
}
6589

6690
resource "aws_redshift_subnet_group" "this" {

variables.tf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,24 @@ variable "logging_s3_key_prefix" {
108108
default = false
109109
}
110110

111+
# parameter group config bits
112+
# ref: https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html
113+
variable "analyze_threshold_percent" {
114+
default = "10"
115+
}
116+
117+
variable "enable_user_activity_logging" {
118+
default = false
119+
}
120+
121+
variable "require_ssl" {
122+
default = false
123+
}
124+
125+
variable "use_fips_ssl" {
126+
default = false
127+
}
128+
111129
variable "wlm_json_configuration" {
112130
default = "[{\"query_concurrency\": 5}]"
113131
}

0 commit comments

Comments
 (0)