-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
workload discovery logs. #529
Comments
Looks like a problem with getting information about the Config aggregator. When you deployed, did you provide the name of an existing aggregator at deployment? Can you run the following CLI command: |
[cloudshell-user@ip-10-132-68-168 ~]$ aws configservice describe-configuration-aggregators --configuration-aggregator-names name |
I replaed 'name' for aggreagator name, and can confirm it was ok. ( just to obfiscate real accounts ) |
As soon as the aggregator became operational the discovery process should have picked it up on its next run. Can you go the discovery process logs and search for a line in the logs with the following string: To retrieve the logs for the discovery component:
|
{ |
Its crashing out on this code.
|
It looks like the aggregator you've created is not an an organization-wide aggregator. Either create a new aggregator of the required type or the just set the |
ok, i've created a new one, that is an org-wide aggreagtor and its not erroring now. Just have to see how the collection is going. |
Seems to be doing the job. Thanks for your help. |
Nice! I think we can make the error message here better, it shouldn't fail silently if that field is missing so I've added that to the backlog. |
I'm going to leave this open until I've released the the change to the error message |
Yes, helpful error messages really help.. |
This has been fixed in v2.1.9 that was released yesterday. |
I'm Getting this error in my /ecs/workload-discovery logs. I'm not seeing any accounts being Imported. I'm running in an organisations mode.
{
"msg": "Cannot read properties of undefined (reading 'AllAwsRegions')",
"stack": "TypeError: Cannot read properties of undefined (reading 'AllAwsRegions')\n at /code/src/lib/apiClient/index.js:143:56\n at Array.map ()\n at getOrgAccounts (/code/src/lib/apiClient/index.js:134:10)\n at async Object.getAccounts (/code/src/lib/utils.js:174:24)\n at async Promise.all (index 0)\n at async discoverResources (/code/src/lib/index.js:19:69)\n at async discover (/code/src/index.js:14:3)",
"level": "error",
"message": "Error in Discovery process.",
"timestamp": "2024-06-19T06:46:23.317Z"
}
@aws folks.. case number 171874402100195
The text was updated successfully, but these errors were encountered: