lin_liu
08/24/2022, 12:05 AMtap-dynamodb :
Run invocation could not be completed as block failed: Cannot start plugin tap-dynamodb: Catalog discovery failed: command ['..../meltano-pipeline/.meltano/extractors/tap-dynamodb/venv/bin/tap-dynamodb', '--config', '..../meltano-pipeline/.meltano/run/tap-dynamodb/tap.02c4052f-bdb0-49d4-a8c3-bd19f19b0f04.config.json', '--discover'] returned 1 with stderr:
INFO Starting discover
INFO Found credentials in shared credentials file: ~/.aws/credentials
CRITICAL No streams found
Traceback (most recent call last):
File "..../meltano-pipeline/.meltano/extractors/tap-dynamodb/venv/bin/tap-dynamodb", line 8, in <module>
sys.exit(main())
File "..../meltano-pipeline/.meltano/extractors/tap-dynamodb/venv/lib/python3.8/site-packages/singer/utils.py", line 229, in wrapped
return fnc(*args, **kwargs)
File "..../meltano-pipeline/.meltano/extractors/tap-dynamodb/venv/lib/python3.8/site-packages/tap_dynamodb/__init__.py", line 103, in main
do_discover(args.config)
File "..../meltano-pipeline/.meltano/extractors/tap-dynamodb/venv/lib/python3.8/site-packages/tap_dynamodb/__init__.py", line 24, in do_discover
raise Exception("No streams found")
Exception: No streams found
Just wonder when using tap-dynamodb, is it similar to the case of tap-mongodb, regarding the configuration of config.json file (https://github.com/singer-io/tap-mongodb) ? and Is there any detailed instructions for tap-dynamodb setting up? I guess I may miss some correct configs.
Many Thanks in advance! 🙏lin_liu
08/24/2022, 1:26 AMchristoph
08/24/2022, 3:01 AMtap-dynamodb indeed looks like one of those taps where finding the right documentation is challenging.
The starting point for the configuration settings is this source code line.
https://github.com/singer-io/tap-dynamodb/blob/e02d8bc02097917940d9ff23cca5a15251473e65/tap_dynamodb/__init__.py#L15christoph
08/24/2022, 3:04 AMchristoph
08/24/2022, 3:26 AMplugins:
extractors:
- name: tap-dynamodb
variant: singer-io
pip_url: tap-dynamodb
config:
account_id: "<YOURAWSACCOUNTID>"
external_id: "NOT_REQUIRED_BUT_NEEDS_TO_HAVE_MORE_THAN_2_CHARACTERS"
role_name: "<NameOfAnIamRoleWithSufficientAccess"
region_name: "ap-southeast-2"
metadata:
'*':
replication-method: FULL_TABLE
The tap uses boto and will pick up your personal creds from ~/.aws/{config,credentials} and log you in automatically.lin_liu
08/24/2022, 3:29 AMchristoph
08/24/2022, 3:49 AMuse_local_dynamo: True to the config keys.
https://github.com/singer-io/tap-dynamodb/blob/e02d8bc02097917940d9ff23cca5a15251473e65/tap_dynamodb/dynamodb.py#L97lin_liu
08/24/2022, 3:59 AMalexander_butler
08/24/2022, 4:29 AMalexander_butler
08/24/2022, 4:29 AMalexander_butler
08/24/2022, 4:29 AMlin_liu
08/24/2022, 4:32 AMalexander_butler
08/24/2022, 4:34 AMdiscover_streams to completion
I suspect the client.list_tables(...) is not returning anything TBHalexander_butler
08/24/2022, 4:34 AMlin_liu
08/24/2022, 4:36 AMlin_liu
08/24/2022, 5:09 AMpat_nadolny
08/24/2022, 12:44 PMpat_nadolny
08/24/2022, 12:45 PMchristoph
08/24/2022, 10:15 PM