Determine the Version of the AWS CodeDeploy
Agent

You can determine the version of the AWS CodeDeploy agent running on your instance
in two
ways.

First, starting with version 1.0.1.854 of the AWS CodeDeploy agent, you can view the
version number
in a .version file on the instance. The following table shows the location and
sample version string for each of the supported operating systems.

Operating system

File location

Sample agent_version string

Amazon Linux and Red Hat Enterprise Linux (RHEL)

/opt/codedeploy-agent/.version

OFFICIAL_1.0.1.854_rpm

Ubuntu Server

/opt/codedeploy-agent/.version

OFFICIAL_1.0.1.854_deb

Windows Server

C:\ProgramData\Amazon\CodeDeploy\.version

OFFICIAL_1.0.1.854_msi

Second, you can run a command on an instance to determine the version of the AWS CodeDeploy
agent.