Hey all, I have some configurations in my `meltano...
# troubleshooting
j
Hey all, I have some configurations in my
meltano.yml
and some in a
.env
file. The configurations in the
.env
file don't seem to be getting picked up. I've read through the configuration section of the docs and I'm still unclear on how to get the
.env
fields in
Do I need to load_dotenv in my tap for it to work?
e
If this a custom tap (not pulled from the Hub with
meltano add
), then you need to make sure settings are declared in
meltano.yml
so they’re picked up from
.env
. Eg:
Copy code
# meltano.yml
plugins:
  extractors:
  - name: tap-pocket
    namespace: tap_pocket
    variant: edgarrmondragon
    pip_url: git+<https://github.com/edgarrmondragon/tap-pocket.git>
    executable: tap-pocket
    capabilities:
    - catalog
    - discover
    - state
    settings:
    - name: consumer_key
      kind: password
    - name: access_token
      kind: password
    - name: start_date
      kind: integer
`.env`:
Copy code
# .env
TAP_POCKET_CONSUMER_KEY=...
TAP_POCKET_ACCESS_TOKEN=...
j
Thank you!, I was just about to post the solution
e
@jam awesome! Was that it?
j
Yes, exactly that. My .env key names were incorrect, they needed to have the leading <plugin_name> added to them, and then I also needed to add the settings
Thanks for the help