Skip to content

Commit

Permalink
Adjusting parameter groups
Browse files Browse the repository at this point in the history
  • Loading branch information
twerthi committed Aug 22, 2022
1 parent d634c3c commit 00e5f29
Showing 1 changed file with 4 additions and 53 deletions.
57 changes: 4 additions & 53 deletions octopus-samples-instances/aws-base-infrastructure-terraform/rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,10 @@ resource "aws_db_subnet_group" "samples_rds_subnet_group" {

resource "aws_db_parameter_group" "solutions_mariadb" {
name = "solutions-mariadb"
family = "mariadb10.6"
family = "mariadb10.5"
parameter {
name = "character_set_server"
value = "utf8mb4"
}

parameter {
name = "character_set_client"
value = "utf8mb4"
}

parameter {
name = "character_set_connection"
value = "utf8mb4"
}

parameter {
name = "character_set_database"
value = "utf8mb4"
}

parameter {
name = "character_set_results"
value = "utf8mb4"
name = "log_bin_trust_function_creators"
value = "1"
}
}

Expand All @@ -44,35 +24,7 @@ resource "aws_db_instance" "mariadb_rds_instance" {
db_subnet_group_name = aws_db_subnet_group.samples_rds_subnet_group.name
vpc_security_group_ids = [aws_security_group.samples_security_group.id]
parameter_group_name = aws_db_parameter_group.solutions_mariadb.name
}

resource "aws_db_parameter_group" "solutions_mysql" {
name = "solutions-mysql"
family = "mysql8.0"
parameter {
name = "character_set_server"
value = "utf8"
}

parameter {
name = "character_set_client"
value = "utf8"
}

parameter {
name = "character_set_connection"
value = "utf8"
}

parameter {
name = "character_set_database"
value = "utf8"
}

parameter {
name = "character_set_results"
value = "utf8"
}
engine_version = "10.5.16"
}

resource "aws_db_instance" "mysql_rds_instance" {
Expand All @@ -86,7 +38,6 @@ resource "aws_db_instance" "mysql_rds_instance" {
skip_final_snapshot = true
db_subnet_group_name = aws_db_subnet_group.samples_rds_subnet_group.name
vpc_security_group_ids = [aws_security_group.samples_security_group.id]
parameter_group_name = aws_db_parameter_group.solutions_mysql.name
}


Expand Down

0 comments on commit 00e5f29

Please sign in to comment.