Is there a way of referencing an environment varia...
# troubleshooting
d
Is there a way of referencing an environment variable in a stream mapper?
e
Hi @dylan_just đź‘‹. What have you tried so far?
d
Copy code
mappings:
    - name: mapper-hamilton
      config:
        stream_maps:
          public-platform:
            environment: os.environ['ENVIRONMENT']
Copy code
mappings:
    - name: mapper-hamilton
      config:
        stream_maps:
          public-platform:
            environment: import os; os.environ['ENVIRONMENT']
e
Oh, that might not work at the moment but take look at • https://github.com/meltano/sdk/issues/1502 • https://github.com/meltano/sdk/pull/2531/ and feel free to create a feature request 🙂 In the meantime, can you try
Copy code
mappings:
    - name: mapper-hamilton
      config:
        stream_maps:
          public-platform:
            environment: $ENVIRONMENT