1 Answer
- Newest
- Most votes
- Most comments
1
AWS Systems Manager Patch Manager is primarily designed to automate the process of patching managed instances with security-related updates for operating systems and applications that are supported by AWS. While Patch Manager is excellent for patching OS-level updates and some AWS-supported applications, it does not natively support patching third-party applications such as Google Chrome, Adobe Acrobat, or Node.js.
However, you can achieve patching for these third-party applications using a combination of AWS Systems Manager Automation and Run Command, along with custom scripts.
Example: Shell Script for Linux (Node.js)
#!/bin/bash
# Example script to update Node.js
# Define the version you want to install
NODE_VERSION="14.x"
# Update the package index
sudo apt-get update -y
# Install Node.js
curl -fsSL https://deb.nodesource.com/setup_$NODE_VERSION | sudo -E bash -
sudo apt-get install -y nodejs
Example: Automation Document (YAML)
description: "Automation document to update third-party applications"
schemaVersion: '0.3'
assumeRole: "{{ AutomationAssumeRole }}"
parameters:
AutomationAssumeRole:
type: String
description: "(Required) The ARN of the role that allows Automation to perform the actions on your behalf."
InstanceIds:
type: StringList
description: "(Required) List of instance IDs to run the script on."
ScriptPath:
type: String
description: "(Required) Path to the script that performs the update."
mainSteps:
- name: RunUpdateScript
action: aws:runCommand
inputs:
DocumentName: AWS-RunShellScript
InstanceIds: "{{ InstanceIds }}"
Parameters:
workingDirectory: "/tmp"
executionTimeout: "3600"
commands:
- "{{ ScriptPath }}"
Relevant content
asked 3 years ago
asked 7 years ago
asked 3 years ago
- AWS OFFICIALUpdated 2 years ago

please accept the answer if it was useful