user8052037
user8052037

Reputation: 53

(ResourceNotFoundException) when calling the PutRecord operation: Stream request-data-debugger under account xxxxxxx

Here is my code

aws kinesis put-record --stream-name request-data-debugger --data file://payload.json --partition-key 1

When I tried to put data to kinesis. It always says,

"(ResourceNotFoundException) when calling the PutRecord operation: Stream request-data-debugger under account xxxxxxx "

But I have created the kinesis, stream with the name of request-data-debugger

Upvotes: 5

Views: 2720

Answers (2)

Malavan P
Malavan P

Reputation: 68

Change the region to the same region where the stream is created.

Upvotes: 2

Malavan
Malavan

Reputation: 819

The problem will occur when you create the stream in a different region and you try to access it using different region. Check which region your stream was created in and update it example below,

aws configure
AWS Access Key ID [****************HATQ]:
AWS Secret Access Key [****************88/U]:
Default region name [us-east-2]: <acutual region>

Upvotes: 2

Related Questions