Best Method to Pass Configuration Setting to a GP Service

09-01-2015 12:47 PM
New Contributor

AGS / ArcPy Folks:

I'm trying to determine the best way to pass a configuration setting into a custom geoprocessing service written in Python and published as a service.  The class of settings that I'm considering are items that don't change from run to run and potentially sensitive items that I don't think should be passed in as service inputs, ex. database connection string.  The best approach I can think of so far is to set a system environment variable to the location of an external (to ArcGIS Server) config file, then write Python to read and parse that config file during each run.  Are there other ways to do this?  Two main goals are to (1) avoid modifying / republishing the GP service and (2) be straightforward (as possible) for non-developers to manage the configuration settings.

Thanks in advance!


0 Kudos
0 Replies