In this article I’m going through this documentation page where Mike Coleman takes us on Using AWS CodeDeploy and AWS CodePipeline to Deploy Applications to Amazon Lightsail. It’s basically a guide of the process of setting up a deployment pipeline. In it, we’ll start by creating a service role for CodeDeploy, an Amazon S3 bucket, and an IAM user. After deploying these services, we’ll create a Lightsail instance. In addition to that, we will install and configure the CodeDeploy agent, as well as registering the instance with CodeDeploy. Finally, we’ll create an application in CodeDeploy, and configure CodePipeline to kick off a new deployment whenever we push changes to GitHub.
Read more about it here: https://weblog.tiagoperes.eu/automating-apps-deployment-to-amazon-lightsail/