-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from dlapina/update-templates
π (RDSDiskSpaceLimit.md): update runbook RDSDiskSpaceLimit
- Loading branch information
Showing
1 changed file
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
Check failure on line 77 in content/runbooks/rds/RDSDiskSpaceLimit.md GitHub Actions / markdownTrailing spaces
|
||
```bash | ||
export AWS_PROFILE=<AWS account> | ||
``` | ||
|
||
Check failure on line 81 in content/runbooks/rds/RDSDiskSpaceLimit.md GitHub Actions / markdownTrailing spaces
|
||
2. Determine the minimum storage for the increase | ||
π‘ RDS requires a minimal storage increase of 10% | ||
|
||
```bash | ||
INSTANCE_IDENTIFIER=<replace with the RDS 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=<replace with new allocated storage in GB> | ||
``` | ||
|
||
```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 | ||
``` | ||
|
||
Check failure on line 104 in content/runbooks/rds/RDSDiskSpaceLimit.md GitHub Actions / markdownTrailing spaces
|
||
β 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 | ||
|
||
Check failure on line 106 in content/runbooks/rds/RDSDiskSpaceLimit.md GitHub Actions / markdownTrailing spaces
|
||
4. Backport changes in Terraform | ||
|
||
## Additional resources | ||
|
||
|