Skip to content

Commit 5ccf936

Browse files
author
Daria Lapina
committed
🚀 feat(RDSDiskSpaceLimit.md): add step to request aws admin permissions for storage increase
Why? - It is possible that your IAM role does not have the necessary permissions to modify the storage of the RDS instance. So you can get the following error: ``` An error occurred (AccessDenied) when calling the ModifyDBInstance operation: User: arn:aws:sts::930600874599:assumed-role/qonto-team-sre-ee/<user_name>@qonto.com is not authorized to perform: rds:ModifyDBInstance on resource: arn:aws:rds:eu-west-3:930600874599:db:pg2 because no identity-based policy allows the rds:ModifyDBInstance action ``` So that's why we need to request admin permissions first.
1 parent 0689504 commit 5ccf936

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

‎content/runbooks/rds/RDSDiskSpaceLimit.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,13 @@ You must avoid reaching no disk space left situation.
7878
```bash
7979
export AWS_PROFILE=<AWS account>
8080
```
81+
2. Request aws admin permissions
8182

82-
2. Determine the minimum storage for the increase
83+
```
84+
qontoctl aws admin get-access "bump $RDS_INSTANCE storage"
85+
```
86+
87+
3. Determine the minimum storage for the increase
8388
đź’ˇ RDS requires a minimal storage increase of 10%
8489

8590
```bash
@@ -91,7 +96,7 @@ You must avoid reaching no disk space left situation.
9196
| 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))}'
9297
```
9398

94-
3. Increase storage:
99+
4. Increase storage:
95100

96101
```bash
97102
NEW_ALLOCATED_STORAGE=<replace with new allocated storage in GB>
@@ -104,7 +109,7 @@ You must avoid reaching no disk space left situation.
104109

105110
âť— 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
106111

107-
4. Backport changes in Terraform
112+
5. Backport changes in Terraform
108113

109114
## Additional resources
110115

0 commit comments

Comments
 (0)