public Ec2TagBasedServiceDiscovery(ExtendedActorSystem system) { _system = system; _log = Logging.GetLogger(system, typeof(Ec2TagBasedServiceDiscovery)); _config = _system.Settings.Config.GetConfig("akka.discovery.aws-api-ec2-tag-based"); _clientConfigFqcn = _config.GetString("client-config"); _tagKey = _config.GetString("tag-key"); var otherFiltersString = _config.GetString("filters"); _otherFilters = ParseFiltersString(otherFiltersString); _preDefinedPorts = _config.GetIntList("ports").ToList(); _runningInstancesFilter = new Filter("instance-state-name", new List <string> { "running" }); var credProviderPath = _config.GetString("credentials-provider"); _credentialProviderFqcn = _config.GetString($"{credProviderPath}.class"); }