CodeDeploy agent configuration reference
When the CodeDeploy agent is installed, a configuration file is placed on the instance. This configuration file specifies directory paths and other settings for CodeDeploy to use as it interacts with the instance. You can change some of the configuration options in the file.
For Amazon Linux, Ubuntu Server, and Red Hat Enterprise Linux (RHEL) instances, the configuration file is named
codedeployagent.yml
. It is placed in the
/etc/codedeploy-agent/conf
directory.
For Windows Server instances, the configuration file is named
conf.yml
. It is placed in the
C:\ProgramData\Amazon\CodeDeploy
directory.
The configuration settings include:
:log_aws_wire: |
Set to WarningYou should set :log_aws_wire: to
The default setting is This setting applies to all instance types. You must add this configuration setting to Windows Server instances to be able to use it. |
:log_dir: |
The folder on the instance where log files related to CodeDeploy agent operations are stored. The default setting is |
:pid_dir: |
The folder where This file contains the process ID (PID) of the CodeDeploy agent. The
default setting is This setting applies to Amazon Linux, Ubuntu Server, and RHEL instances only. |
:program_name: |
The CodeDeploy agent program name. The default setting is
This setting applies to Amazon Linux, Ubuntu Server, and RHEL instances only. |
:root_dir: |
The folder where related revisions, deployment history, and deployment scripts on the instance are stored. The default setting is |
:verbose: |
Set to The default setting is |
:wait_between_runs: |
The interval, in seconds, between CodeDeploy agent polling of CodeDeploy for pending deployments. The default setting is |
:on_premises_config_file: |
For on-premises instances, the path to an alternate location for
the configuration file named
By default, these files are stored in
Available in version 1.0.1.686 and later versions of the CodeDeploy agent. |
:proxy_uri: |
(Optional) The HTTP proxy through which you want the CodeDeploy agent to
connect to AWS for your CodeDeploy operations. Use a format similar to
Available in version 1.0.1.824 and later versions of the CodeDeploy agent. |
:max_revisions: |
(Optional) The number of application revisions for a deployment group that you want the CodeDeploy agent to archive. Any revisions that exceed the number specified are deleted. Enter any positive integer. If no value is specified, CodeDeploy will retain the five most recent revisions in addition to the currently deployed revision. Supported in version 1.0.1.966 and later versions of the CodeDeploy agent. |
:enable_auth_policy: |
(Optional) Set to The default setting is |
:disable_imds_v1: |
This setting is available with CodeDeploy agent 1.7.0 and later. Set to |
Related topics
Working with the CodeDeploy agent
Managing CodeDeploy agent operations