Hi,
For the streaming ingestion lab, I’m trying to run the 2 python files for the consumer and producer on the cli at src/cli/
:
python consumer_from_cli.py --stream de-c2w2lab1-kinesis-data-stream-cli
Error: botocore.exceptions.NoCredentialsError: Unable to locate credentials errors
python producer_from_cli.py --stream de-c2w2lab1-kinesis-data-stream-cli --json_string '{"session_id": "a1", "customer_number": 100, "city": "Washington", "country": "USA", "credit_limit": 1000, "browse_history": [ {"product_code": "Product1", "quantity": 2, "in_shopping_cart": true}, {"product_code": "Product2", "quantity": 1, "in_shopping_cart": false}]}
Error: {‘message’: ‘Error producing record’, ‘error’: ‘Unable to locate credentials’, ‘record’: {‘session_id’: ‘a1’, ‘customer_number’: 100, ‘city’: ‘Washington’, ‘country’: ‘USA’, ‘credit_limit’: 1000, ‘browse_history’: [{‘product_code’: ‘Product1’, ‘quantity’: 2, ‘in_shopping_cart’: True}, {‘product_code’: ‘Product2’, ‘quantity’: 1, ‘in_shopping_cart’: False}]}}
I noticed in my cloud9 that i do not have any AWS credentials in ~/.aws. Could this be the reason? How do i resolve this?
Thanks!