amazon-web-services - 将 ElasticSearch 添加为 AWS Data Migration Service 的目标时连接失败

标签 amazon-web-services elasticsearch aws-dms

我正在尝试在 DMS 中设置 ElasticSearch 端点,但无论我在测试连接时尝试什么,都会收到此一般错误:

Test Endpoint failed: Application-Status: 1020912, Application-Message: Endpoint initialization failed.


我创建了一个受 dms.amazonaws.com 信任的角色:
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "1",
      "Effect": "Allow",
      "Principal": {
        "Service": "dms.amazonaws.com"
      },
      "Action": "sts:AssumeRole"
    }
  ]
}
并给予它一切许可:
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "*"
            ],
            "Resource": "*"
        }
    ]
}
我还将我的 Elasticsearch 域配置为公共(public)域,我可以连接到它并访问 Kibana。
我跟着这个“教程”学习,但现在我不知道在哪里寻找 Elastic 的日志/潜在问题。
enter image description here

最佳答案

我遇到了同样的问题,不得不修改 Elasticsearch 域的访问策略以允许附加到我的 DMS 目标端点的角色访问它。

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::{accountNumber}:role/{serviceRoleUsedForDmsTargetEndpoint}"
      },
      "Action": [
        "es:ESHttpDelete",
        "es:ESHttpGet",
        "es:ESHttpHead",
        "es:ESHttpPost",
        "es:ESHttpPut"
      ],
      "Resource": "{yourElasticsearchDomainArn}"
    }
  ]
}
这不是我通过教程/文档找到的解决方案,而是通过支持案例找到的。

关于amazon-web-services - 将 ElasticSearch 添加为 AWS Data Migration Service 的目标时连接失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65564300/

相关文章:

amazon-web-services - 在 cloudformation 中的 s3 存储桶 ObjectCreated 事件上执行 lambda

amazon-web-services - aws cli 在哪里存储配置文件信息?

c# - 如何索引NotAnalyzed字段类型List <string>?

elasticsearch - 通过查询删除Elasticsearch记录

c# - 使用数据模型在 dynamodb 中进行条件更新

amazon-web-services - AWS Glue + Athena/Hive 是替代复杂 SQL 查询的正确选择吗?

elasticsearch - 自从ElasticSearch从1.3x升级到2.3x后,关于子类型的脚本不再起作用

postgresql - AWS DMS 任务失败,出现错误 : Error executing source loop; Stream component failed at subtask 0

oracle - AWS DMS - 迁移 Oracle 数据库时任务失败

aws-dms - 将 AWS DMS 连接到 Redshift Serverless?