Following from Marci's answer, I went on and tried to deploy from GitHub using the steps he mentions (adapting the region) but I'm getting
The deployment failed because no instances were found for your deployment group. Check your deployment group settings to make sure the tags for your Amazon EC2 instances or Auto Scaling groups correctly identify the instances you want to deploy to, and then try again.
According to Gabriel in 2017
Lightsail is intended for smaller projects and doesn't support load balancing or auto-scaling groups at this time.
The only thing I could think of doing atm was to make sure each instance is using the tag myasg
which is the same tag used in the Deployment Group
but that isn't enough.
Based on the comments:
Lightsale (LS) instances are considered as on-premise instances. This means that in order to use CodeDeploy (CD) with them, they need to be registered with CD as on-premises instances.
In order to do this, one can follow three steps:
Amazon_Linux_2
is the name of the instance)This means that now on the first OP's screenshot, there is "On-premises instances" menu option with the following
Retry deployment if previous attempt failed before registration.
and if you check your instances Public IP
and navigate to it in the browser, you should see the result as expected