Hi guys, I am following the example from the Melta...
# plugins-general
o
Hi guys, I am following the example from the Meltano academy. I am confused, it says to update the configuration file, but there is none. That configuration is now don ein the client.py? thanks
a
the config is accessed via
meltano config
with your plugin name (eg a tap or target) eg for a target for
target-s3-csv
you can access config for that via
meltano config target-s3-csv list
these hold secrets and stuff so they’re not held in the yml. You can map those configs automatically in the
meltano.yml
file by referencing environment variables you set in your
.env
file (or actual environment variables when deploying) eg. from
meltano.yml
Copy code
loaders:
  - name: target-s3
    namespace: target_s3
    pip_url: <pip name for installing package
    executable: target-s3
    settings:
    - name: aws_auth_method
      env: TARGET_S3_AWS_AUTH_METHOD
    - name: aws_role_arn
      env: TARGET_S3_AWS_ROLE_ARN
    - name: aws_role_session_name
      env: TARGET_S3_AWS_ROLE_SESSION_NAME
    - name: naming_convention
      env: TARGET_S3_S3_NAMING_CONVENTION
    - name: aws_access_key_id
      env: TARGET_S3_AWS_ACCESS_KEY_ID
    - name: aws_access_key_secret
      env: TARGET_S3_AWS_ACCESS_KEY_SECRET
    - name: s3_bucket
      env: TARGET_S3_BUCKET_NAME
o
thanks @adam_rudd