I have a cluster with 2 nodes which works fine.
I am running the latest Elastic search version, and I would like to use
snapshot/restore API, but having hard time getting to work. Note, it works
fine with "fs" type, its AWS I am having hard time with.
In my 2 instances, I have this in the config.yml files
cloud:
aws:
access_key: XXXXXX
secret_key: YYYYYYY
discovery:
type: ec2
I have created S3 bucket called it "my-bucket", Inbound rules allow most
ports, 22, 80, 9200, 9300
Tried to register the bucket with ElasticSearch:
PUT /_snapshot/es_repository
{
"type": "s3",
"settings": {
"bucket": "my-bucket"
}
I get this error:
"error": "RemoteTransportException[[node
2][inet[/10.240.78.87:9300]][cluster/repository/put]]; nested:
RepositoryException[[elasticsrch] failed to create repository]; nested:
CreationException[Guice creation errors:\n\n1) Error injecting constructor,
com.amazonaws.AmazonClientException: Unable to load AWS credentials from
any provider in the chain\n at
org.elasticsearch.repositories.s3.S3Repository.()\n at
org.elasticsearch.repositories.s3.S3Repository\n at
Key[type=org.elasticsearch.repositories.Repository, annotation=[none]]\n\n1
error]; nested: AmazonClientException[Unable to load AWS credentials from
any provider in the chain]; ",
"status": 500
}
Any ideas?
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/3749a26a-75cb-4ae7-a3bb-8160a7030847%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.