S3 configuration problem

The error below seems to indicate that my credentials aren't correct, which
I know they are. Could the error below something else?

//////////YML //////////////////////////

cloud:

 aws:

     access_key: ##########

     secret_key: ##########

discovery:

    type: ec2

gateway:

    type: s3

    s3:

        bucket: my-bucket-name

////////////////////////////////////////////////////////////////

curl -XPUT 'http://localhost:9200/_snapshot/my_s3_repository' -d '{

"type": "s3",
"settings": {
    "bucket": "my-bucket-name",
    "region": "us-east-1"   //with/out --
}

}'

{"error":"RepositoryException[[my_s3_repository] 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.(Unknown Source)\n
while locating org.elasticsearch.repositories.s3.S3Repository\n while
locating org.elasticsearch.repositories.Repository\n\n1 error]; nested:
AmazonClientException[Unable to load AWS credentials from any provider in
the chain];

--
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/7a850e80-903a-4f04-abf8-672e83107557%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.