简体   繁体   English

Debezium IAM 角色问题的 AWS MSK 连接器

[英]AWS MSK Connectors for Debezium IAM Role Problem

I want creat a connector for Debezium.我想为 Debezium 创建一个连接器。 I am unable to create a kafka connector using the AWSServiceRoleForKafkaConnect role.我无法使用AWSServiceRoleForKafkaConnect角色创建 kafka 连接器。 Here is the error I get when clicking Create Connector on the last page in the form:这是单击表单最后一页上的创建连接器时出现的错误:

Error creating connector There was a problem creating a connector. If the problem persists, contact AWS Support. API response Invalid parameter serviceExecutionRoleArn: A service linked role ARN cannot be provided as service execution role ARN.

Here is the document which I am following: https://aws.amazon.com/tr/blogs/aws/introducing-amazon-msk-connect-stream-data-to-and-from-your-apache-kafka-clusters-using-managed-connectors/这是我关注的文档: https://aws.amazon.com/tr/blogs/aws/introducing-amazon-msk-connect-stream-data-to-and-from-your-apache-kafka-clusters -使用托管连接器/

How Can I fix this problem?我该如何解决这个问题? Thanks!谢谢!

I'm having the same issue in the last few days.最近几天我遇到了同样的问题。 I have created Kafka connectors in early Jan and December with no issues using the provided AWSServiceRoleForKafkaConnect role.我在 1 月初和 12 月初创建了 Kafka 连接器,使用提供的AWSServiceRoleForKafkaConnect角色没有任何问题。

I tried creating the new connectors with the same config on the same cluster using the same role that worked before and now I'm also getting the same error:我尝试使用以前工作的相同角色在同一个集群上创建具有相同配置的新连接器,现在我也遇到了同样的错误:

 Invalid parameter serviceExecutionRoleArn: A service linked role ARN cannot be provided as service execution role ARN.

I think this may be an issue on the AWS side.我认为这可能是 AWS 方面的一个问题。

I had a similar problem while creating MSK Connector to S3 bucket.我在创建 S3 存储桶的 MSK 连接器时遇到了类似的问题。 You can solve it using instructions from this tutorial: https://docs.aws.amazon.com/msk/latest/developerguide/mkc-tutorial-setup.html您可以使用本教程中的说明解决它: https://docs.aws.amazon.com/msk/latest/developerguide/mkc-tutorial-setup.html

You have to create new IAM Role and edit Trust relationship:您必须创建新的 IAM 角色并编辑信任关系:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": {
        "Service": "kafkaconnect.amazonaws.com"
      },
      "Action": "sts:AssumeRole"
    }
  ]
}

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM