MyNixOS website logo
option

services.amazon-cloudwatch-agent.configurationFile

Amazon CloudWatch Agent configuration file. See https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Agent-Configuration-File-Details.html for supported values.

The following options aren't supported:

  • agent.run_as_user

configurationFile takes precedence over configuration.

Note: Restricted evaluation blocks access to paths outside the Nix store. This means detecting content changes for mutable paths (i.e. not input or content-addressed) can't be done. As a result, nixos-rebuild won't reload/restart the systemd unit when mutable path contents change. systemctl restart amazon-cloudwatch-agent.service must be used instead.

Declarations
Type
null or path
Default
null
Example
"/etc/amazon-cloudwatch-agent/amazon-cloudwatch-agent.json"