- Newest
- Most votes
- Most comments
Hello.
I'm sorry that this is not a direct solution, but I think it would be better to register it as an issue in the SSM Agent Github repository.
https://github.com/aws/amazon-ssm-agent/issues
As SSM Agent should be usable on EC2 MacOS, as you anticipate, there's a possibility that the issue lies with the SSM Agent itself.
https://docs.aws.amazon.com/systems-manager/latest/userguide/operating-systems-and-machine-types.html#prereqs-os-mac
As @Malini Agrawal suggests, there's a possibility that copying or moving files might improve the situation. However, please be cautious, as according to the documentation mentioned below, making changes to the installation directory could potentially cause the SSM Agent to stop working.
https://docs.aws.amazon.com/systems-manager/latest/userguide/ssm-agent-technical-details.html#installation-directory
SSM Agent is installed at /var/lib/amazon/ssm/ (Linux and macOS) and %PROGRAMFILES%\Amazon\SSM\ (Windows Server). These installation directories contain critical files and folders used by SSM Agent, such as a credentials file, resources for inter-process communication (IPC), and orchestration folders. Nothing within the installation directory should be modified, moved, or deleted. Otherwise, SSM Agent might cease to function properly.
- Typical location SSM gent look for (/etc/aws/ssm/agent.conf) for Linux/MacOS. But you mentioned is changed to opt/aws/ssm/runtimeconfig->Not default location.
- to resolve this issue-> move SSM Agent configuration file to (/etc/aws/ssm/agent.conf) also check credentials file at /var/lib/amazon/ssm/runtimeconfig.
- restart SSM agent.
answered 2 years ago
Relevant content
asked 4 years ago
asked 2 years ago

The instance was created from an official AWS image so it included the SSM Agent already. Because of that, I don't want to go changing files around. This seems like a bug to me. I'll create a GitHub issue. It just wasn't clear to me that that repo is responsible for the patching payload script which I think might be where the bug actually is.