treasure-data / digdag

Workload Automation System
https://www.digdag.io/
Apache License 2.0
1.3k stars 221 forks source link

Reading td api key from TD_API_KEY env or .td/td.conf file #6

Closed xerial closed 8 years ago

xerial commented 8 years ago

We would like to avoid embedding td-api-key in the digdag yml file.

How about making apikey parameter optional for td executor? Even if API key is not given, td-client-java can read TD_API_KEY or .td/td.conf file.

xerial commented 8 years ago

Or we need to add a documentation on how to embed apikey from a command line: digdag run -p apikey=$TD_API_KEY

frsyuki commented 8 years ago

you can use !include : config/td.yml to load another file.

frsyuki commented 8 years ago

I don't wan't to recommend environment variables because it's environment-specific (which means that the workflow may not be reproducible on another machine). To make server-side hosting easy, configuration should be static or explicit.