Replies: 2 comments 1 reply
-
I am currently working through a problem that requires me to deal with (at least) three separate source environments with corresponding targets. In this case the ability to dynamically assign, or rewrite, the contents of I might be saying this though because the handling of environment variable in My case is that I have to load files from S3 -> Redshift for multiple sources. The data structures are the same but the S3 buckets and destination Redshift databases are namespaced. Using eg.
Ideally I need to be able to provide a different |
Beta Was this translation helpful? Give feedback.
-
[Migrated from GitHub issue to discussion.]
Premise
A dynamic expression capability such as jinja would often be helpful, especially for two use cases:
ref()
against another node in the meltano.yml config file(s).start_date
config values relative tonow()
.Background discussion
Details
Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/3112
Originally created by @kgpayne on 2021-12-09 10:31:49
In order to support
resource
references (#3108), it would be advantageous to support some kind of referencing or templating capability within the Meltano config. YAML reference support is available, but not as full featured enough to allow attribute selection or string formatting (e.g. to compile a resource URI from component user, password, host etc.).As Meltano is built in python, Jinja comes to mind as an obvious choice. Meltano could provide a set of built-in macros for referencing config elements, akin to the
ref
andsource
macros provided indbt
.Alternatives and Workarounds
As of now, there are two basic alternatives that solve most use cases:
env: {}
declaration, and then pass the env var to all plugins which require it.Beta Was this translation helpful? Give feedback.
All reactions