aws / aws/amazon-ssm-agent

SSM agent on hybrid instance (raspbian linux) attempts to reach 169.254.169.254

Open
#269 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
1.2k
Forks
357
PR merge metrics
No merged PRs in 30d

Description

i installed the latest ssm agent on my raspberry pi 4 (raspbian) and while i can see it from the systems manager console, i keep getting this error in the errors.log:

ERROR [CollectBillingInfoData @ dataProvider_unix.go.60] [ssm-document-worker] [eb85f6f8-42c2-4b9c-8458-c493234c4814.2020-04-04T16-09-51.386Z] [DataBackend] [pluginName=aws:softwareInventory] [aws:softwareInventory] Failed to execute command : curl [http://169.254.169.254/latest/dynamic/instance-identity/document]; error: exit status 7

I believe this is a bug because a hybrid instance should not be trying to query the metadata over 169.254.169.254 because hybrid instances don't have a route to reach it.

My raspberry pi is using straight internet to connect to the ssm endpoints and this is a default configuration, i haven't changed anything at all. Inventory collection is enabled each 30 minutes as you can see though

Contributor guide

Open the contributing guide

Research direction

Start with dataProvider_unix.go around line 60 and trace the aws:softwareInventory path that runs the metadata curl request. Reproduce inventory collection on the Raspberry Pi hybrid instance; done means hybrid instances no longer attempt this unreachable endpoint or log the resulting error.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, go, linux, raspberry-pi
Domain
cloud, devops, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.