}
JanitorCrawler instanceCrawler;
if (configuration().getBoolOrElse("simianarmy.janitor.edda.enabled", false)) {
instanceCrawler = new EddaInstanceJanitorCrawler(createEddaClient(), awsClient().region());
} else {
instanceCrawler = new InstanceJanitorCrawler(awsClient());
}
BasicJanitorContext instanceJanitorCtx = new BasicJanitorContext(
monkeyRegion, ruleEngine, instanceCrawler, janitorResourceTracker,
monkeyCalendar, configuration(), recorder());
return new InstanceJanitor(awsClient(), instanceJanitorCtx);