Skip to content

Commit

Permalink
Merge pull request #18 from comet-ml/mysql8
Browse files Browse the repository at this point in the history
Switch to MySQL 8 as default in RDS
  • Loading branch information
burmek authored Apr 8, 2024
2 parents aabc737 + b48e3d7 commit 0353ef2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion modules/comet_rds/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ resource "aws_rds_cluster" "cometml-db-cluster" {

resource "aws_rds_cluster_parameter_group" "cometml-cluster-pg" {
name = "cometml-rds-cluster-pg-${var.environment}"
family = "aurora-mysql5.7"
family = "aurora-mysql${var.rds_engine_version}"
description = "CometML RDS cluster parameter group"

parameter {
Expand Down Expand Up @@ -109,6 +109,11 @@ resource "aws_rds_cluster_parameter_group" "cometml-cluster-pg" {
name = "log_bin_trust_function_creators"
value = "1"
}
parameter {
apply_method = "pending-reboot"
name = "thread_stack"
value = "6291456"
}
}

resource "aws_security_group" "mysql_sg" {
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ variable "rds_engine" {
variable "rds_engine_version" {
description = "Engine version number for RDS database"
type = string
default = "5.7"
default = "8.0"
}

variable "rds_instance_type" {
Expand Down

0 comments on commit 0353ef2

Please sign in to comment.