Skip to content

Commit 68fd17c

Browse files
committed
Merge pull request futurice#31 from jre21:update_aurora
commit aa8999193a9b85f38b553fd3525a784e56e56597 Author: Jacob Emmert-Aronson <jacob@mlaronson.com> 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 <jacob@mlaronson.com> Date: Mon May 31 16:04:23 2021 -0700 Update aurora to mysql 5.7
1 parent d6dfbeb commit 68fd17c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

aws/wordpress_fargate/db.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ resource "random_string" "snapshot_suffix" {
55

66
resource "aws_rds_cluster" "this" {
77
cluster_identifier = "${var.prefix}-${var.environment}"
8-
engine = "aurora"
8+
engine = "aurora-mysql"
99
engine_mode = "serverless"
1010
vpc_security_group_ids = [aws_security_group.db.id]
1111
db_subnet_group_name = aws_db_subnet_group.this.name
1212
engine_version = var.db_engine_version
13-
availability_zones = data.aws_availability_zones.this.names
13+
availability_zones = slice(data.aws_availability_zones.this.names, 0, 3)
1414
database_name = "wordpress"
1515
master_username = var.db_master_username
1616
master_password = var.db_master_password

aws/wordpress_fargate/variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ variable "db_master_password" {
7979
}
8080
variable "db_engine_version" {
8181
description = "The database engine version"
82-
default = "5.6.10a"
82+
default = "5.7.mysql_aurora.2.07.1"
8383
}
8484
variable "db_auto_pause" {
8585
description = "Whether to enable auto pause"

0 commit comments

Comments
 (0)