Error creating s3 repository

Hello

I'm trying to create S3 repository to take a snapshot of Elasticsearch cluster and i get below error -

{"error":{"root_cause":[{"type":"repository_exception","reason":"[my_s3_repository] failed to create repository"}],"type":"repository_exception","reason":"[my_s3_repository] failed to create repository","caused_by":{"type":"sdk_client_exception","reason":"The requested metadata is not found at http://169.254.169.254/latest/meta-data/iam/security-credentials/"}},"status":500}

Below is the curl command that i used.

curl -X PUT -u elastic:elastic ":9200/_snapshot/my_s3_repository" -H 'Content-Type: application/json' -d'

{
"type": "s3",
"settings": {
"bucket": "newtestbuqet"
}
}
'

Can anyone please tell me what am I missing? There is nothing much that I could find with regards to this error.

Thanks!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.