(ResourceNotFoundException) 调用 PutRecord 操作时:在帐户 xxxxxxx 下流请求数据调试器

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

这是我的代码

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

当我试图将数据放入kinesis时。它总是说,

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

但是我已经创建了名为 request-data-debugger

的运动流

当您在不同的区域创建流并尝试使用不同的区域访问它时,就会出现此问题。 检查您的流是在哪个区域创建的,并在下面的示例中进行更新,

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

将区域更改为创建流的同一区域。