
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2024 05:53 AM
Hello,
Anyone have any idea why ServiceGraph connector for AWS does not fetch all the resources on every run? For example Lambda functions and s3 buckets are fetched occasionally. Sometimes all of them are fetched and sometimes none?
And is there any way to enforce ServiceGraph connector for AWS to fetch all resources available on AWS side? The documentation I've found is somewhat sketchy.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2024 06:53 AM - edited 10-02-2024 06:54 AM
The solution found. We just need to set last_run_datetime to empty value for datasources with name starting with SG-AWS- in sys_data_source table to enforce ServiceGraph connector for AWS fetch all available AWS resources.
If last_run_datetime is set for datasource it fetches only aws resources added/modified after last_run_datetime - 2 .
var gr = new GlideRecord('sys_data_source');
gr.addEncodedQuery('nameSTARTSWITHSG-AWS-');
gr.query(); while(gr.next()){
gr.last_run_datetime = '';
gr.update();
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2024 06:53 AM - edited 10-02-2024 06:54 AM
The solution found. We just need to set last_run_datetime to empty value for datasources with name starting with SG-AWS- in sys_data_source table to enforce ServiceGraph connector for AWS fetch all available AWS resources.
If last_run_datetime is set for datasource it fetches only aws resources added/modified after last_run_datetime - 2 .
var gr = new GlideRecord('sys_data_source');
gr.addEncodedQuery('nameSTARTSWITHSG-AWS-');
gr.query(); while(gr.next()){
gr.last_run_datetime = '';
gr.update();
}