Not able to get "status" : "200 OK" for Bulk Load API Call using aws neptune

0

I am not able to do Neptune bulk load from AWS S3 using curl command Bulk Load API Call ? Command: curl -X POST -H 'Content-Type: application/json' https://**.cluster-c4brigvg3m9m.us-east-2.neptune.amazonaws.com:8182/loader -d' { "source" : "s3://*/Unsaved/2022/12/13/4a873928-9910-47b0-85ca-de593ace4f4a.csv", "format" : "csv", "iamRoleArn" : "arn:aws:iam::959061167427:role/NeptuneLoadFroms3", "region" : "us-east-2", "failOnError" : "FALSE", }'

This is the error I am getting: {"code":"AccessDeniedException","requestId":"f6243cd3-2a4f-48a2-9d91-13803c199ef1","detailedMessage":"Missing Authentication Token"}

Can annyone please help me why I am getting this error and How can I resolve it ?

1개 답변
0

The curl utility does not have a means to pass IAM credentials. The error message you are getting is because you're using a Neptune cluster with IAM Authentication enabled. To resolve this issue, you can use awscurl [1], a utility that will sign the request with IAM credentials that you pass either directly as parameters, credentials that you have stored as environment variables, or credentials that you have stored as a profile in the AWS CLI.

awscurl -X POST --service neptune-db -H 'Content-Type: application/json' --region us-east-2 \
https://**.cluster-c4brigvg3m9m.us-east-2.neptune.amazonaws.com:8182/loader -d' 
    {
        "source" : "s3://*/Unsaved/2022/12/13/4a873928-9910-47b0-85ca-de593ace4f4a.csv", 
        "format" : "csv", 
        "iamRoleArn" : "arn:aws:iam::959061167427:role/NeptuneLoadFroms3", 
        "region" : "us-east-2", 
        "failOnError" : "FALSE"
}'

[1] https://github.com/okigan/awscurl

profile pictureAWS
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인