Skip to content

Commit

Permalink
Merge pull request #28 from dlapina/update-templates
Browse files Browse the repository at this point in the history
πŸ“ (RDSDiskSpaceLimit.md): update runbook RDSDiskSpaceLimit
  • Loading branch information
jbourdale committed Jul 4, 2024
2 parents 0dfe301 + 87b60bb commit 5ebd15f
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions content/runbooks/rds/RDSDiskSpaceLimit.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

View workflow job for this annotation

GitHub Actions / markdown

Trailing spaces

content/runbooks/rds/RDSDiskSpaceLimit.md:77:1 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 4] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md009.md
```bash
export AWS_PROFILE=<AWS account>
```

Check failure on line 81 in content/runbooks/rds/RDSDiskSpaceLimit.md

View workflow job for this annotation

GitHub Actions / markdown

Trailing spaces

content/runbooks/rds/RDSDiskSpaceLimit.md:81:1 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 4] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md009.md
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>
Expand All @@ -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

View workflow job for this annotation

GitHub Actions / markdown

Trailing spaces

content/runbooks/rds/RDSDiskSpaceLimit.md:104:1 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 4] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md009.md
❗ 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

View workflow job for this annotation

GitHub Actions / markdown

Trailing spaces

content/runbooks/rds/RDSDiskSpaceLimit.md:106:1 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 4] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md009.md
4. Backport changes in Terraform

## Additional resources

Expand Down

0 comments on commit 5ebd15f

Please sign in to comment.