Use RegisterPatchBaselineForPatchGroup with a CLI - AWS Systems Manager

AWS Systems Manager Change Manager is no longer open to new customers. Existing customers can continue to use the service as normal. For more information, see AWS Systems Manager Change Manager availability change.

Use RegisterPatchBaselineForPatchGroup with a CLI

The following code examples show how to use RegisterPatchBaselineForPatchGroup.

CLI
AWS CLI

To register a patch baseline for a patch group

The following register-patch-baseline-for-patch-group example registers a patch baseline for a patch group.

aws ssm register-patch-baseline-for-patch-group \ --baseline-id "pb-045f10b4f382baeda" \ --patch-group "Production"

Output:

{ "BaselineId": "pb-045f10b4f382baeda", "PatchGroup": "Production" }

For more information, see Create a Patch Group <https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-patch-group-tagging.html>__ and Add a Patch Group to a Patch Baseline in the AWS Systems Manager User Guide.

PowerShell
Tools for PowerShell V4

Example 1: This example registers a patch baseline for a patch group.

Register-SSMPatchBaselineForPatchGroup -BaselineId "pb-03da896ca3b68b639" -PatchGroup "Production"

Output:

BaselineId PatchGroup ---------- ---------- pb-03da896ca3b68b639 Production
Tools for PowerShell V5

Example 1: This example registers a patch baseline for a patch group.

Register-SSMPatchBaselineForPatchGroup -BaselineId "pb-03da896ca3b68b639" -PatchGroup "Production"

Output:

BaselineId PatchGroup ---------- ---------- pb-03da896ca3b68b639 Production

For a complete list of AWS SDK developer guides and code examples, see Using this service with an AWS SDK. This topic also includes information about getting started and details about previous SDK versions.