- Newest
- Most votes
- Most comments
I can confirm that Amazon has fixed this issue. The correct 'deploy' executable is now downloaded to the ARM64 based EC2 instance in /opt/codepipeline directory and the deployment happens correctly.
It appears you're experiencing an issue with the EC2 Deploy action in CodePipeline where the deployment agent executable being downloaded is incompatible with your ARM64 architecture. The error occurs because the system is downloading an x86-64 executable instead of an ARM64-compatible one, despite correctly detecting your ARM64 architecture.
This is a known issue with the native EC2 deployment support that was introduced in February 2025. While the feature is designed to simplify deployments to EC2 instances without requiring CodeDeploy resources, there appears to be a problem with the architecture detection or executable distribution for ARM64 instances.
As a temporary workaround, you have a few options:
- Retry the failed stage in your pipeline using the AWS CLI command:
aws codepipeline retry-stage-execution --pipeline-name YourPipelineName --stage-name Deploy --pipeline-execution-id YourExecutionId --retry-mode FAILED_ACTIONS
This might work if the issue was temporary.
-
Consider reverting to using AWS CodeDeploy for your deployments. Note that while CodeDeploy does support ARM64 instances running Amazon Linux 2 and Amazon Linux 2023, there are known limitations with Ubuntu 24.04 on ARM64.
-
Contact AWS Support to report this specific issue with the EC2 Deploy action providing incorrect executables for ARM64 architecture.
Since this appears to be an issue with AWS's deployment mechanism rather than your configuration, it will likely require AWS to fix the problem by ensuring the correct ARM64-compatible executable is provided at the ARM64 download URL.
Sources
AWS CodeDeploy Host Agent not available for ARM64 EC2 instance running Ubuntu 24.04.1 LTS | AWS re:Post
Configuring stage retry for a failed stage or failed actions - AWS CodePipeline
AWS CodePipeline adds native Amazon EC2 deployment support - AWS
Relevant content
- asked 10 months ago
