无法将数据批量加载到 Neptune

Unable to bulk load data into Neptune

我正在使用 awscurl 将数据从 s3 批量加载到海王星中:

我做了以下事情:

我得到的错误是:

Couldn't find the aws credential for iam_role_arn: arn:aws:iam::1111111:role/NeptuneAdmin

确保我拥有此凭证的最佳方法是什么?我正在从本地执行此操作。

示例查询

awscurl -X POST \                                                          ─╯
    -H 'Content-Type: application/json' \
    https://endpoint.us-west-2.neptune.amazonaws.com:8182/loader  -d '
    {
      "source" : "s3://tf-bulk-load-test/vertex.txt",
      "format" : "csv",
      "iamRoleArn" : "arn:aws:iam::1111111111:role/NeptuneAdmin",
      "region" : "us-west-2",
      "failOnError" : "FALSE",
      "parallelism" : "MEDIUM",
      "updateSingleCardinalityProperties" : "FALSE",
      "queueRequest" : "TRUE",
      "dependencies" : []
    }' \
    --header 'host: endpoint.us-west-2.neptune.amazonaws.com' \
    --service neptune-db

将此添加为答案以防其他人发现您的问题。

需要使用 Web 控制台或 CLI 将赋予 Neptune 访问 S3 的角色添加到 Neptune。然后当发出 curl 命令时,Neptune 会找到角色。