How do i connect to S3 and index files on s3

Hi,

I installed elastic search today, i am basically testing the es with one node. I am trying to configure the yml file, since the s3 gateway is deprecated where do i specify the bucket name? currently my config file looks like this :

cloud:
aws:
access_key: xxxxxxxxxxxxxxxx
secret_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
region: us-west-2

gateway:
recover_after_nodes: 1
recover_after_time: 5m

And once i start the service will it start indexing all the files in my bucket? is there an option to specify certain filenames to index in my bucket?

Thanks,
Sid