Skip to content

Commit

Permalink
Merge pull request futurice#31 from jre21:update_aurora
Browse files Browse the repository at this point in the history
commit aa8999193a9b85f38b553fd3525a784e56e56597
Author: Jacob Emmert-Aronson <[email protected]>
Date:   Mon May 31 16:05:24 2021 -0700

    Restrict aurora to three availability zones

    Some AWS regions now have four or more availability zones, but it's an
    error to pass more than three to aurora's cluster configuration.

commit afaced2f93d18eb71516c626cebc85859885cbd4
Author: Jacob Emmert-Aronson <[email protected]>
Date:   Mon May 31 16:04:23 2021 -0700

    Update aurora to mysql 5.7
  • Loading branch information
peterkc committed Jul 25, 2021
1 parent d6dfbeb commit 68fd17c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions aws/wordpress_fargate/db.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ resource "random_string" "snapshot_suffix" {

resource "aws_rds_cluster" "this" {
cluster_identifier = "${var.prefix}-${var.environment}"
engine = "aurora"
engine = "aurora-mysql"
engine_mode = "serverless"
vpc_security_group_ids = [aws_security_group.db.id]
db_subnet_group_name = aws_db_subnet_group.this.name
engine_version = var.db_engine_version
availability_zones = data.aws_availability_zones.this.names
availability_zones = slice(data.aws_availability_zones.this.names, 0, 3)
database_name = "wordpress"
master_username = var.db_master_username
master_password = var.db_master_password
Expand Down
2 changes: 1 addition & 1 deletion aws/wordpress_fargate/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ variable "db_master_password" {
}
variable "db_engine_version" {
description = "The database engine version"
default = "5.6.10a"
default = "5.7.mysql_aurora.2.07.1"
}
variable "db_auto_pause" {
description = "Whether to enable auto pause"
Expand Down

0 comments on commit 68fd17c

Please sign in to comment.