Reputation: 3
This question is similar to this question and this question but could not be solved by their answers.
I am trying to create a simple stream in AWS using kinesis firehose to stream data to s3 buckets. Both stream and bucket are located at us-east-1
as specified at this post.
Then I created an user with all possible inline policies available to kinesis (specially PutRecord). I double checked that the region is the same for the bucket and the stream, and double checked the stream name.
After aws configure
on my computer I have tried to run:
aws kinesis put-record --stream-name my-stream-name --data file://payload.json --partition-key 1
But I receive ResourceNotFoundException ... Stream my-stream-name under account ... not found
.
I've been trying to figure out what can be the issue for days and honestly I am out of ideas after searching everywhere and rebuilding the stream so many times for multiple regions, users and policies.
Anyone has had this issue before and manage solve it? Any ideas of what can be missing? Any suggestions of tutorials doing a simple stream from python -> kinesis -> s3 that I can try?
Thank you all !
Upvotes: 0
Views: 7155
Reputation: 404
You are using "kinesis data stream" APIs to ingest record to "kinesis firehose". Thats why you are getting resource not found exception, because it is looking under kinesis data stream resources
Try this one -
aws firehose put-record --delivery-stream-name <value> --record <value>
Upvotes: 4