If you are using the SDK to host your Yii app on AWS, then a simpler way is to use a managed hosting PaaS, like Cloudways PHP hosting platform, to deploy your app. This method is much easier because using this platform, you don’t have to manually setup a server or install the Stack and OS. These packages are preconfigure. You can directly start with deploying your Yii app through Git or SFTP.