AWSSupportRemediator-RemediateRdsParameterGroupParameter - AWS Systems Manager Automation Runbook Reference
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

AWSSupportRemediator-RemediateRdsParameterGroupParameter

Description

Updates a single parameter on an Amazon Relational Database Service (Amazon RDS) DB parameter group or DB cluster parameter group to the value recommended by AWS Trusted Advisor.

This automation remediates findings identified by AWS Well-Architected Agent. It remediates findings from the following AWS Trusted Advisor checks:

The runbook applies the recommended value with ApplyMethod: immediate. The change propagates to every Amazon RDS DB instance and DB cluster that uses the parameter group. For parameters that Amazon RDS classifies as static, the new value takes effect only after the next reboot of the associated DB instance or DB cluster.

Trusted Advisor chooses recommended values to improve durability, correctness, or observability, and those values can change the runtime performance characteristics of the DB instances and DB clusters that use the parameter group. Review the linked Trusted Advisor check before running the runbook.

If the Amazon RDS parameter group does not exist or the flagged parameter is already set to the recommended value, the automation completes successfully without making changes.

Important considerations
  • You are responsible for reviewing automation actions before they run.

  • This automation might cause stack drift if the resource is part of an AWS CloudFormation stack.

  • Access to AWSSupportRemediator-* runbooks requires an active Business Support+, Enterprise Support, or Unified Operations Support plan. For more information, see Compare AWS Support Plans on the AWS website.

Document type

Automation

Owner

Amazon

Platforms

Linux, macOS, Windows

Parameters

  • AutomationAssumeRole

    Type: String

    Description: (Optional) The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that allows Systems Manager Automation to perform the actions on your behalf. If no role is specified, Systems Manager Automation uses the permissions of the user that starts this runbook.

  • ParameterGroupArn

    Type: String

    Description: (Required) The Amazon Resource Name (ARN) of the Amazon RDS DB parameter group or DB cluster parameter group that Trusted Advisor flagged.

  • ParameterName

    Type: String

    Description: (Required) The name of the Amazon RDS parameter that Trusted Advisor flagged.

  • RecommendedValue

    Type: String

    Description: (Required) The recommended value to mitigate the Trusted Advisor finding. Valid values: 0, 1, ALL, ON, or DYNAMIC.

Required IAM permissions

The AutomationAssumeRole parameter requires the following actions to use the runbook successfully.

  • rds:DescribeDBClusterParameters

  • rds:DescribeDBParameters

  • rds:ModifyDBClusterParameterGroup

  • rds:ModifyDBParameterGroup

Document Steps
  1. validateParameterGroup - Validates the Amazon RDS parameter group, checks whether the flagged parameter already matches the recommended value, and captures the initial value for traceability. Returns ChangeRequired: false when the parameter group does not exist so the automation ends without making changes.

  2. branchOnChangeRequired - Branches on whether the parameter needs a change and routes to the update step that matches the parameter group type (pg or cluster-pg). The runbook ends here when the parameter already matches the recommended value or the parameter group does not exist.

  3. updateParameterGroupForDB - Applies the recommended value to the Amazon RDS DB parameter group by calling rds:ModifyDBParameterGroup with ApplyMethod: immediate. For static parameters, the new value takes effect only after the next reboot of the DB instances that use the parameter group.

  4. updateParameterGroupForCluster - Applies the recommended value to the Amazon RDS DB cluster parameter group by calling rds:ModifyDBClusterParameterGroup with ApplyMethod: immediate. For static parameters, the new value takes effect only after the next reboot of the DB clusters that use the parameter group.

Outputs
  • validateParameterGroup.ChangeRequired: Whether the parameter needs a change.

  • validateParameterGroup.InitialParameterValue: The parameter value before modification, for traceability and rollback.

  • validateParameterGroup.ParameterGroupName: The parameter group name that the runbook derives from the ARN.

  • validateParameterGroup.ParameterGroupType: The type of the parameter group (pg or cluster-pg).

  • validateParameterGroup.ValidationMessage: A message describing the validation outcome.