Not able to load data using neptune bulk load- Credential should be scoped to a valid region, not 'us-east-1 error shows

0

When I Submit api call get initiate successfully with status 200 ok using this command. Command: awscurl -X POST --service neptune-db -H 'Content-Type: application/json' --region us-east-2
https://omdena-kyield-database-1.cluster-c4brigvg3m9m.us-east-2.neptune.amazonaws.com:8182/loader -d' { "source" : "s3://kyieldgraphdboutput/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" }' Output: { "status" : "200 OK", "payload" : { "loadId" : "b4627762-11c1-4aa8-8bbe-3fb70ef850ac" } }

But when able to check Monitor the Loading Process using this command then I am able to get this error.

Command: awscurl --service neptune-db 'https://omdena-kyield-database-1.cluster-c4brigvg3m9m.us-east-2.neptune.amazonaws.com:8182/loader/b4627762-11c1-4aa8-8bbe-3fb70ef850ac'

Error: {"code":"AccessDeniedException","requestId":"e5a7a210-fd31-4263-90e7-c2154be1e00e","detailedMessage":"Credential should be scoped to a valid region, not 'us-east-1'. "}

requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://*****:8182/loader/33aaf4f9-54b5-4f7b-8b39-b00cfb379397

Can anyone please help me with this ?

1 Antwort
0

On this command here:

awscurl --service neptune-db 'https://omdena-kyield-database-1.cluster-c4brigvg3m9m.us-east-2.neptune.amazonaws.com:8182/loader/b4627762-11c1-4aa8-8bbe-3fb70ef850ac'

You still need to add the appropriate region to sign the request:

--region us-east-2

So in total:

awscurl --service neptune-db 'https://omdena-kyield-database-1.cluster-c4brigvg3m9m.us-east-2.neptune.amazonaws.com:8182/loader/b4627762-11c1-4aa8-8bbe-3fb70ef850ac' --region us-east-2
profile pictureAWS
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen