https://linen.dev logo
#plugins-general
Title
# plugins-general
j

joanna

11/16/2023, 2:01 PM
Copy code
version: 1
default_environment: prod
project_id: XXX
environments:
- name: dev
- name: staging
- name: prod
plugins:
  extractors:
  - name: tap-rest-api-msdk
    variant: widen
    pip_url: tap-rest-api-msdk
    config:
      api_url: <https://company.restapi.com/api/v1>
      streams:
      - name: elab_exp
        path: /exp
        headers:
          Authorization: ${XXX}
        primary_keys:
        - expID
        records_path: $.data[*]
        params:
          projectID: 00

      - name: elab_sec
        path: /exp/AAAAAA/sec
        headers:
          Authorization: ${XXX}
        primary_keys:
          - sectID
        records_path: $.data[*]
        params:
          projectID: 00
Hi, I try to put into my meltano.yml an environment variable. I exported my variable XXX to environment. However, when I'm running meltano locally, I get an error saying that it was not recognized. Could you please tell me what am I doing wrong? According to documentation it is a good way https://docs.meltano.com/guide/configuration/#overriding-discoverable-plugin-properties
*Your meltano.yml project file*, under the plugin's config key.
Inside values, environment variables can be referenced as $VAR (as a single word) or ${VAR} (inside a word).