Skip to content

Commit

Permalink
Feature/hotfix rds upgrade (#225)
Browse files Browse the repository at this point in the history
* Update db.tf

* fix syntax

* add rds_max_allowed_packet variable

* fix type rds_max_allowed_packet

---------

Co-authored-by: rjena5300 <[email protected]>
  • Loading branch information
githubjianli and rjena5300 authored Feb 15, 2023
1 parent a3bd03a commit b09c11a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion db.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ resource "aws_rds_cluster_parameter_group" "apiary_rds_param_group" {
name = "${local.instance_alias}-param-group"
family = "${var.rds_family}" # Needs to be kept in sync with aws_rds_cluster.apiary_cluster.engine and version
description = "Apiary-specific Aurora parameters"
tags = merge(map("Name", "${local.instance_alias}-param-group"), "${var.apiary_tags}")
tags = "${merge(map("Name", "${local.instance_alias}-param-group"), "${var.apiary_tags}")}"

parameter {
name = "max_allowed_packet"
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -356,3 +356,9 @@ variable "rds_engine" {
type = "string"
default = "aurora-mysql"
}

variable "rds_max_allowed_packet" {
description = "RDS/MySQL setting for parameter 'max_allowed_packet' in bytes. Default is 128MB (Note that MySQL default is 4MB)."
type = "string"
default = "134217728"
}

0 comments on commit b09c11a

Please sign in to comment.