Hi,
I recently provisioned a new t4g.medium EC2 instance (ARM64) as a production server and installed Ubuntu 24.04.1 LTS version on it. While working on the existing AWS CodePipeline for our web application, I was modifying the 'Deploy' stage which uses AWS CodeDeploy, to automatically deploy the web app to this new EC2 instance. When I ran the pipeline, the 'Deploy' stage failed.
The error in AWS CodeDeploy was for event 'ApplicationStop' and the error message was 'UnknownError:
CodeDeploy agent was not able to receive the lifecycle event. Check the CodeDeploy agent logs on your host and make sure the agent is running and can connect to the CodeDeploy server.'. I realized that the error is because the AWS CodeDeploy agent was never installed on this new EC2 instance.
Next, I tried to install the AWS CodeDeploy host agent using the AWS System Manager, which was the preferred method of installation. I installed the SSM agent and later followed the steps outlined here to install the host agent. However, whenever the association runs (whether manually or as per schedule), it fails at the 'configurePackage' step with the following error 'failed to find platform: no manifest found for platform: ubuntu, version 24.04, architecture arm64'.
I realized that Ubuntu 24.0.4.1 LTS OS is not supported by the AWS CodeDeploy Host Agent by reading the documentation here.
I understand that Ubuntu 24.04 LTS is the latest LTS version, but its over 1 year old & AWS Code Deploy host agent should have supported it by now. If you look at the version history of the host agent, you will notice that version 1.5.0 implemented support for Ubuntu 22.04 within 10 months of its release. Isn't AWS CodeDeploy an important service in the AWS bouquet? At least, we are relying on it for our deployments, and its a bit unfair for us to have to suffer from the lack of automated deployments.
So, what is the best way out now?
- Wait for AWS to officially add support for Ubuntu 24.04 LTS to the AWS CodeDeploy agent.
- Try to install the last released version of the host agent viz. 1.7.1 using the instructions here and see if it works.
- Pursue some other stop gap arrangement.
Please advise.