Skip to content

AWS Patch Manager for some third party external tools

0

Hello Team, Can I use AWS patch manager to patch some 3rd party tools such as google chrome, acrobat, node.js, etc?

  • please accept the answer if it was useful

asked 2 years ago1.3K views

1 Answer
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 }}"

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years 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.