Adding support for s3_read_resource and s3_read_write_resource config options