Amazon Linux 2 already comes with cfn-init
and other AWS integrated tools, but the CodeDeploy docs doesn't mention Amazon Linux 2 and running any service commands respond something similar to:
Redirecting to /bin/systemctl start codedeploy-agent.service
Failed to start codedeploy-agent.service: Unit not found.
How can I enable the CodeDeploy agent, preferably using cfn-init
?