diff --git a/content/runbooks/rds/RDSDiskSpaceLimit.md b/content/runbooks/rds/RDSDiskSpaceLimit.md index f7ba80e..d89d570 100644 --- a/content/runbooks/rds/RDSDiskSpaceLimit.md +++ b/content/runbooks/rds/RDSDiskSpaceLimit.md @@ -73,7 +73,14 @@ You must avoid reaching no disk space left situation. {{% aws-rds-storage-increase-limitations %}} {{< /hint >}} - 1. Determine the minimum storage for the increase + 1. Set AWS_PROFILE + + ```bash + export AWS_PROFILE= + ``` + + 2. Determine the minimum storage for the increase + 💡 RDS requires a minimal storage increase of 10% ```bash INSTANCE_IDENTIFIER= @@ -84,16 +91,20 @@ You must avoid reaching no disk space left situation. | jq -r '{"Current IOPS": .DBInstances[0].Iops, "Current Storage Limit": .DBInstances[0].AllocatedStorage, "New minimum storage size": ((.DBInstances[0].AllocatedStorage|tonumber)+(.DBInstances[0].AllocatedStorage|tonumber*0.1|floor))}' ``` - 1. Increase storage: + 3. Increase storage: ```bash NEW_ALLOCATED_STORAGE= ``` ```bash - aws rds modify-db-instance --db-instance-identifier ${RDS_INSTANCE} --allocated-storage ${INSTANCE_IDENTIFIER} --apply-immediately \ + aws rds modify-db-instance --db-instance-identifier ${INSTANCE_IDENTIFIER} --allocated-storage ${NEW_ALLOCATED_STORAGE} --apply-immediately \ | jq .DBInstance.PendingModifiedValues ``` + + ❗ If the RDS instance has replicas instances (replica or reporting), you must repeat the operation for all replicas to keep the same configuration between instances + + 4. Backport changes in Terraform ## Additional resources