简体   繁体   English

AWS Put Subscription Filter for Kinesis Firehose using Cloudformation - 检查给定的 Firehose stream 是否处于活动状态 state

[英]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 also struggle with this for a long time, for me it was those 2 gothca's:我也为此苦苦挣扎了很长时间,对我来说是那两个哥特式的:

step 4 in the guide: make sure to change to bucket name to you bucket:指南中的第 4 步:确保将存储桶名称更改为您的存储桶:

在此处输入图像描述

step 8:!!:第 8 步:!!:

make sure to put your account ID it is not highlighted:确保将您的帐户 ID 不突出显示:

在此处输入图像描述

I am sure you already know how to configure logs subscription filter so not adding steps in my answer我相信您已经知道如何配置日志订阅过滤器,因此不要在我的答案中添加步骤

  1. Go to firehose and check logs is your firehose has access to execute lambda,if not please add required role. Go 到 firehose 并检查日志是您的 firehose 有权执行 lambda,如果没有,请添加所需的角色。
  2. Now start dummy data stream using firehose test and see is your data is moving till lambda or S3.现在使用 firehose 测试启动虚拟数据 stream,看看您的数据是否移动到 lambda 或 S3。
  3. check cloud trail and cloud watch logs and see if found any error.检查云跟踪和云监视日志,看看是否发现任何错误。
  4. Open your IAM role and check all required role added to your role, now click trust relationship add- "logs group ","IAM" and component name in my case its "Ec2"打开您的 IAM 角色并检查添加到您的角色中的所有必需角色,现在单击信任关系添加-“日志组”、“IAM”和组件名称在我的情况下为“Ec2”

Hope this will helpful to resolve your issue.希望这将有助于解决您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Kinesis Firehose Stream 空 - Kinesis Firehose Stream Empty 从数据 stream (Kinesis) 到 OpenSearch AWS 创建交付 stream (Firehose) - Create delivery stream (Firehose) from data stream (Kinesis) to OpenSearch AWS AWS Kinesis Data Firehose 和 Lambda - AWS Kinesis Data Firehose and Lambda 在 AWS 中创建加密的 kinesis stream 时,%FIREHOSE_POLICY_TEMPLATE_PLACEHOLDER% 是什么意思? - When creating an encrypted kinesis stream in AWS, what does %FIREHOSE_POLICY_TEMPLATE_PLACEHOLDER% mean? Kinesis Firehose 写入 S3 云监视订阅过滤器,但文件不可读 - Kinesis Firehose writes to S3 cloud watch subscription filter but the files are not readable 如何在不通过 Kinesis Data 的情况下直接将 KPL(Kinesis Producer Library)集成到 Kinesis firehose Stream - How to integrate KPL (Kinesis Producer Library) to Kinesis firehose directly without going through Kinesis Data Stream 读取 Amazon Kinesis Firehose 写入 s3 的数据 stream - Reading the data written to s3 by Amazon Kinesis Firehose stream json 在 kinesis firehose stream 中嵌套 json 加载失败 - json load fails for nested json in kinesis firehose stream 使用来自 Kinesis Data Stream 源的 Kinesis Firehose Delivery Stream 将数据写入 S3 时出现问题 - Problem writing data to S3 with Kinesis Firehose Delivery Stream from Kinesis Data Stream source Kinesis firehose 真的是实时处理吗? - Kinesis firehose is really realtime processing?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM