sonny_george
01/25/2023, 5:57 PMconfig:tables:path
actually look? Something like this I'm assuming: "_Other examples of URLs that smart_open accepts:_ `s3://my_key:my_secret@my_bucket/my_key`"... I'm also assuming I don't need to expose my credentials in my config so how I could I get this url to pull from my .env
file given this "smart_open" format? Thanks!Matt Menzenski
01/25/2023, 6:00 PMAWS_ACCESS_KEY_ID
, AWS_SECRET_ACCESS_KEY
, and AWS_DEFAULT_REGION
. I believe that s3 access uses the boto3 library under the hood - that library supports a range of AWS access methods, but this is what I’m doing and it works. If you set those three variables in your .env
file, meltano should pull them from there automatically.Matt Menzenski
01/25/2023, 6:01 PMplugins:
extractors:
- name: tap-spreadsheets-anywhere
config:
tables:
- path: <s3://my-bucket-name>
name: my_stream_name
pattern: my-directory/my-subdirectory/.*json
start_date: '2020-01-01T00:00:00Z'
key_properties: [ ]
format: jsonl
sonny_george
01/25/2023, 6:10 PMsonny_george
01/25/2023, 6:18 PM[Errno 2] No such file or directory: '/Users/sonnygeorge/meltano-test/.meltano/run/tap-spreadsheets-anywhere/tap.9f4dfeec-c938-4b81-bf74-264e76b926e6.config.json'
(and for the record, it is correct, that file is certainly not in that folder..)Matt Menzenski
01/25/2023, 6:21 PMmeltano add extractor tap-spreadsheets-anywhere
?)Matt Menzenski
01/25/2023, 6:21 PMmeltano config tap-spreadsheets-anywhere
what’s the result? It should be a JSON representation containing that tables arraysonny_george
01/25/2023, 6:31 PMsonny_george
01/25/2023, 6:53 PMmeltano run tap-spreadsheets-anywhere target-jsonl
, I seem to be getting stuck on the first of 1034 files...Matt Menzenski
01/25/2023, 6:53 PMsonny_george
01/25/2023, 6:54 PMMatt Menzenski
01/25/2023, 6:58 PMmeltano invoke tap-spreadsheets-anywhere
?sonny_george
01/25/2023, 7:02 PMsonny_george
01/25/2023, 7:05 PMinvoke
generate a log anywhere? It's hard to tell if it is making it past the first file with all the mess flying through my terminal 😅Matt Menzenski
01/25/2023, 7:06 PMMatt Menzenski
01/25/2023, 7:06 PMmeltano invoke tap-spreadsheets-anywhere | tee -a output.jsonl
to redirect to an output file as well as display in the terminal