giorgio_baldelli
08/04/2023, 4:15 PMgiorgio_baldelli
08/04/2023, 4:15 PMversion: 1
default_environment: dev
project_id: 39b83dca-20cb-49a0-b7fe-8c610f621e19
environments:
- name: dev
- name: staging
- name: prod
plugins:
extractors:
- name: tap-sftp
variant: meltanolabs
pip_url: git+<https://github.com/MeltanoLabs/tap-sftp.git>
config:
host: dummy_host
port: 22
username: ubuntu
private_key_file: ~/.ssh/dummy_key
tables:
- table_name: dummy_customer
search_prefix: /dummy_path/
search_pattern: dummy_file*
delimiter: ','
encoding: utf-8
sanitize_header: true
start_date: 2020-01-01
select:
- '*.*'
loaders:
- name: target-s3
variant: crowemi
pip_url: git+<https://github.com/crowemi/target-s3.git>
config:
cloud_provider:
aws:
aws_bucket: test
aws_endpoint_override: localhost:9000
edgar_ramirez_mondragon
08/04/2023, 4:36 PMgiorgio_baldelli
08/04/2023, 5:26 PM2023-08-04T17:18:48.855465Z [error ] Loading failed code=1 message=AttributeError: 'NoneType' object has no attribute 'get' name=meltano run_id=ecb527fd-0a6f-4420-a184-fabb89fccd9d state_id=2023-08-04T171838--tap-sftp--target-s3
I tested a dummy loader to understand if the data is being extracted from the sftp host in the first place and that works well. No luck with target-s3
however.user
08/04/2023, 5:33 PMtarget-s3
may be misconfigured. Can you inspect the contents of the output from meltano config target-s3
to see if there's anything that looks off?giorgio_baldelli
08/04/2023, 6:10 PM.meltano
and found a bunch of errors hinting to missing settings.
I got it to work with a custom endpoint. The config:
{
"append_date_to_filename": true,
"append_date_to_filename_grain": "day",
"append_date_to_prefix": true,
"append_date_to_prefix_grain": "day",
"cloud_provider": {
"aws": {
"aws_access_key_id": "dummy_key",
"aws_bucket": "dummy_bucket",
"aws_endpoint_override": "<https://localhost:9000>",
"aws_region": "us-east-1",
"aws_secret_access_key": "dummy_secret"
},
"cloud_provider_type": "aws"
},
"format": {
"format_type": "parquet"
},
"prefix": "dummy/path"
}
user
08/04/2023, 6:11 PM