While following this tutorial, I created the instance with the desired script. Yet, when I ssh in and run
sudo service codedeploy-agent status
<
If I created the instance using Amazon Linux 2, ssh in and run
sudo service codedeploy-agent status
then would get the error
Redirecting to /bin/systemctl status codedeploy-agent.service
Unit codedeploy-agent.service could not be found.
In order to fix it, created a new instance but this time made sure to be using Amazon Linux.
Now, when running
sudo service codedeploy-agent status
I get the following result
The AWS CodeDeploy agent is running as PID 2780