yii 1.1 and aws s3 support

Am currently managing a codebase built on yii 1.1 and hosted on digital ocean with the project assets hosted on the same server (project directory). I have moved the assets to s3 to save storage space and improve load speed but I need a way to manage the assets in a way that initial path aliases in my config are replaced with path to the assets on s3, any help?