Hey guys, I’m trying to have meltano.yml read from...
# troubleshooting
r
Hey guys, I’m trying to have meltano.yml read from environment variable as a way to only read specific configs depending on the dev environment. Currently I have
Copy code
version: 1
project_id: <project_id>
default_environment: ${MELTANO_ENVIRONMENT}  
include_paths:
- ./environments/environments.meltano.yml
- ./extract/*.meltano.${MELTANO_ENVIRONMENT}.yml
- ./load/*.meltano.${MELTANO_ENVIRONMENT}.yml
- ./orchestrate/*.meltano.${MELTANO_ENVIRONMENT}.yml
but it doesn’t read the environment variable. I tried setting it also in environments.meltano.yml but it doesnt also work
from my limited time of testing. this isn’t possible, I created 3 meltano.yml files and on Dockerfile, defined what should be used based on MELTANO_ENVIRONMENT env var
e
Hi @ryan_andrei_perez! That's not currently possible,
include_paths
are processed before env vars are resolved.
r
Yeah, I did settle with creating multiple meltano files and let Dockerfile determine based on the environment variable. appreciate the confirmation on this!