Skip to content

How do I get pending maintenance about maintenance details

0

Enter image description here I see only these two details how to get pending maintenance as shown in the screen shot

{
  "ResourceIdentifier": "arn:aws-cn:rds:us-east-1:123456789012:db:mydb2",
  "PendingMaintenanceActionDetails": [
    {
      "Action": "system-update",
      "Description": "New Operating System update is available"
    }
  ]
}

My question is how to get these values which I am seeig the console 
required – The maintenance action will be applied to the resource and can't be deferred indefinitely.
available– The maintenance action is available, but it will not be applied to the resource automatically. You can apply it manually.
next window – The maintenance action will be applied to the resource during the next maintenance window.
In progress – The maintenance action is being applied to the resource.
3 Answers
0

Hi,

To provide additional details, a mandatory operating system update includes an AutoAppliedAfterDate value and a CurrentApplyDate value. An optional operating system update doesn't include these values.

You can refer to the below AWS Documentation for similar example,

Operating system updates for RDS DB instances

and under the topics,

Operating system updates for RDS DB instances > AWS CLI

Also, sample from my local lab,

$ aws rds describe-pending-maintenance-actions --resource-identifier arn:aws:rds:us-east-1:<hidden>:db:rdspgdb01
{
    "PendingMaintenanceActions": [
        {
            "ResourceIdentifier": "arn:aws:rds:us-east-1:<hidden>:db:rdspgdb01",
            "PendingMaintenanceActionDetails": [
                {
                    "Action": "system-update",
                    "Description": "New Operating System update is available"
                },
                {
                    "Action": "db-upgrade",
                    "OptInStatus": "next-maintenance",
                    "CurrentApplyDate": "2026-01-25T06:08:00Z",
                    "Description": "New engine patch version is available: 13.20.R2"
                }
            ]
        }
    ]
}
AWS

answered 10 months ago

  • is there a way to know this system update is optional or mandatory

0

Hi,

Regarding mandatory or optional update, an optional update has its maintenance Status set to available and doesn't have an Apply date.

A mandatory update has its maintenance Status set to required and has an Apply date, which can be seen in both the AWS console and when queried through aws cli.

AWS

answered 10 months ago

-1

To get pending maintenance details for your AWS database resources, you can use the AWS CLI command describe-pending-maintenance-actions. This command will show you information about pending maintenance for your database resources.

Based on the screenshot and output you shared, you're seeing basic information about a pending system update. To get more comprehensive details including timing information (such as when the maintenance will be applied), you should run the full command:

aws rds describe-pending-maintenance-actions --resource-identifier arn:aws-cn:rds:us-east-1:123456789012:db:mydb2

The complete output should include additional fields such as:

  • CurrentApplyDate: When the maintenance is scheduled to be applied
  • AutoAppliedAfterDate: When the maintenance will be automatically applied if not manually applied
  • ForcedApplyDate: The deadline by which the maintenance must be applied
  • OptInStatus: The current status of the maintenance action

If you want to see pending maintenance actions for all your resources without specifying a particular resource identifier, you can simply run:

aws rds describe-pending-maintenance-actions

For Amazon DocumentDB specifically, the command format is similar:

aws docdb describe-pending-maintenance-actions --resource-identifier your-resource-arn

For DocumentDB elastic clusters, you would use:

aws docdb-elastic get-pending-maintenance-action --resource-arn your-resource-arn

Sources
Determining pending maintenance - Amazon DocumentDB
Amazon RDS examples using AWS CLI - AWS SDK Code Examples
Maintaining an Amazon Aurora DB cluster - Amazon Aurora
Cancel pending maintenance in RDS for PostgreSQL | AWS re:Post
Maintaining Amazon DocumentDB elastic clusters - Amazon DocumentDB

answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.