CrowdStrike / aws-ssm-distributor

15 stars 8 forks source link

Support for AlmaLinux / Rocky Linux #65

Closed mattgresham closed 11 months ago

mattgresham commented 1 year ago

A couple of our vendors have based their AMI's on AlmaLinux or Rocky Linux. They should be binary compatible so shouldn't need additional testing.

ffalor commented 1 year ago

Hey @mattgresham how do these instances show up in Ssm? Does running the current distributor package so the os is unsupported?

mattgresham commented 1 year ago

Yep, they show up in SSM and in the first step (GetSSMInstanceInformation) they are detected with these outputs

...
  "AgentVersion": "3.2.923.0",
  "IsLatestVersion": false,
  "PlatformType": "Linux",
  "PlatformName": "AlmaLinux",
  "PlatformVersion": "8.8",
...

The distributor then continues to step 5 (ExecuteDistributorPackageLinux) and errors with the following when it doesn't know which binary to use in the manifest:

failed to find platform: no manifest found for platform: almalinux, version 8.8, architecture x86_64
ffalor commented 12 months ago

@mattgresham I've been working on this, and started to test, but looks like almalinux & rocky linux are not supported by distributor.

[ERROR] Failed to build and publish new distributor package version in region us-east-1. Error An error occurred (InvalidDocumentContent) when calling the CreateDocument operation: Unsupported Platform included in manifest: almalinux.
ffalor commented 11 months ago

Closing this as this is a limitation of AWS Systems Manager, if they add support I will reopen this.