Image style not generated in amazon s3.

I have image store in amazon s3. When I upload the image in custom image style it is not generated. But when I upload the image in the default file folder it generates. So, can anyone help solve the problem that the image style does not generate in Amazon s3?