Skip to content

Commit

Permalink
SP-2514 - Bump PostgreSQL & Terraform minor version, Serverless V2 Ze…
Browse files Browse the repository at this point in the history
…ro Capacity Scaling #minor
  • Loading branch information
sixdaysandy committed Jan 2, 2025
1 parent ecf98ba commit 40d546e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 40 deletions.
46 changes: 17 additions & 29 deletions terraform/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions terraform/aurora.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resource "aws_rds_cluster" "cluster" {
deletion_protection = true
engine = "aurora-postgresql"
engine_mode = "provisioned"
engine_version = "13.12"
engine_version = "13.16"
enabled_cloudwatch_logs_exports = ["postgresql"]
final_snapshot_identifier = "response-${local.environment}-final-snapshot"
kms_key_id = data.aws_kms_key.rds.arn
Expand All @@ -21,15 +21,14 @@ resource "aws_rds_cluster" "cluster" {
vpc_security_group_ids = [aws_security_group.response_rds.id]

serverlessv2_scaling_configuration {
min_capacity = 0.5
min_capacity = 0
max_capacity = 4
}

lifecycle {
prevent_destroy = true
ignore_changes = [
engine_version,
global_cluster_identifier
engine_version
]
}
}
Expand Down
16 changes: 9 additions & 7 deletions terraform/versions.tf
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
terraform {
required_version = "1.9.8"
required_version = "1.10.3"
required_providers {
aws = {
source = "hashicorp/aws"
version = "5.75.0"
version = "5.82.2"
}
}

backend "s3" {
bucket = "opg.terraform.state"
key = "opg-incident-response/terraform.tfstate"
encrypt = true
region = "eu-west-1"
role_arn = "arn:aws:iam::311462405659:role/incident-response-ci"
bucket = "opg.terraform.state"
key = "opg-incident-response/terraform.tfstate"
encrypt = true
region = "eu-west-1"
assume_role = {
role_arn = "arn:aws:iam::311462405659:role/incident-response-ci"
}
dynamodb_table = "remote_lock"
}
}
Expand Down

0 comments on commit 40d546e

Please sign in to comment.