Theme files on S3

I am developing the application using Yii 1 and must host the themes in a bucket S3 in the AWS. It is possible? If possible, how do I set it?

I tried setting the main.php the themeManager (basePath and baseUrl), but did not succeed.

Thank you for your attention and for the help!