More Info:
Identify any pending RDS Reserved Instance (RI) purchases available within your AWS account. A payment-pending RDS RI purchase is a reservation purchase that cannot be fully processed due to issues with the payment methodRisk Level
MediumAddress
Cost OptimisationCompliance Standards
CBPTriage and Remediation
Remediation
Using Console
Using Console
To remediate the issue of RDS Reserved Instances having a status of “Payment Pending” in AWS, you can follow these step-by-step instructions using the AWS Management Console:
- Sign in to the AWS Management Console: Go to https://aws.amazon.com/, click on “Sign In to the Console”, and enter your credentials.
- Navigate to the RDS Console: Once you are logged in, navigate to the Amazon RDS console by clicking on “Services” in the top menu bar, selecting “RDS” under the Database category.
-
Identify the RDS Reserved Instances with Payment Pending Status:
- In the RDS console, click on the “Reserved Instances” in the left-hand menu.
- Look for the Reserved Instances with a status of “Payment Pending”. These instances are the ones that need to be remediated.
-
Select the Reserved Instance:
- Click on the checkbox next to the RDS Reserved Instance with the “Payment Pending” status to select it.
-
Modify the Reserved Instance:
- Click on the “Actions” dropdown menu above the list of Reserved Instances.
- Select “Modify Reserved Instances” from the dropdown menu.
-
Update the Payment Information:
- In the Modify Reserved Instances page, update the payment information for the selected Reserved Instance.
- You may need to update the payment method or resolve any payment issues to ensure that the status changes from “Payment Pending” to “Active”.
-
Save Changes:
- Once you have updated the payment information, click on the “Modify Reserved Instances” button to save the changes.
-
Verify the Status:
- After saving the changes, go back to the list of Reserved Instances and verify that the status of the selected Reserved Instance has changed from “Payment Pending” to “Active”.
Using CLI
Using CLI
To remediate the misconfiguration of RDS Reserved Instances having a status of “Payment Pending” in AWS using AWS CLI, follow these steps:Replace
- List all the Reserved Instances in your AWS account to identify the one with the status “Payment Pending”:
- Identify the Reserved Instance with the status “Payment Pending” in the output.
-
Modify the Reserved Instance to change its status from “Payment Pending” to “Active” by using the
modify-db-instance
command:
<your-db-instance-identifier>
with the identifier of your RDS DB instance and <your-reserved-instance-id>
with the ID of the Reserved Instance that has the status “Payment Pending”.- Wait for the modification to be completed. You can check the status of the Reserved Instance again using the
describe-reserved-db-instances
command:
- Verify that the status of the Reserved Instance has been successfully changed to “Active”.
Using Python
Using Python
To remediate the issue of RDS Reserved Instances having a status of “Payment Pending” in AWS using Python, you can follow these steps:
- Import the necessary Python libraries:
- Initialize the AWS RDS client:
- Describe all the Reserved Instances for RDS:
- Iterate through each Reserved Instance and check if its status is “Payment Pending”:
- After running the above script, the status of the RDS Reserved Instances with “Payment Pending” should be remediated to the desired status.