[英]AWS Put Subscription Filter for Kinesis Firehose using Cloudformation - Check if the given Firehose stream is in ACTIVE state
Following this guide and creating a Kinesis Firehose Stream.按照本指南创建 Kinesis Firehose Stream。
I have followed the guide and when I get to creating a subscription filter (step 12), I encounter this error when trying to send to S3:我已按照指南进行操作,当我开始创建订阅过滤器(第 12 步)时,我在尝试发送到 S3 时遇到此错误:
An error occurred (InvalidParameterException) when calling the PutSubscriptionFilter operation: Could not deliver test message to specified Firehose stream. Check if the given Firehose stream is in ACTIVE state.调用 PutSubscriptionFilter 操作时发生错误 (InvalidParameterException):无法将测试消息传送到指定的 Firehose stream。检查给定的 Firehose stream 是否处于活动状态 state。
I can confirm that the stream is active and I can send test data via the console and it arrives in S3 as expected.我可以确认 stream 处于活动状态,我可以通过控制台发送测试数据,它按预期到达 S3。
This is the command I am running (changed my account id):这是我正在运行的命令(更改了我的帐户 ID):
aws logs put-subscription-filter --log-group-name "myLogGroup" --filter-name "Destination" --filter-pattern "{$.userIdentity.type = Root}" --destination-arn "arn:aws:firehose:ap-southeast-1:1234567890:deliverystream/my-delivery-stream" --role-arn "arn:aws:iam::1234567890:role/CWLtoKinesisFirehoseRole"
I have checked the trusted entities and the role has priviliges to logs and firehose.我已经检查了受信任的实体,并且该角色对日志和消防水管具有特权。 Any ideas?有任何想法吗?
I am sure you already know how to configure logs subscription filter so not adding steps in my answer我相信您已经知道如何配置日志订阅过滤器,因此不要在我的答案中添加步骤
Hope this will helpful to resolve your issue.希望这将有助于解决您的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.