title: AWS: CloudWatch agent configuration file
body: <p>I am trying to provide the CW agent configuration, regarding which files the latter should track;</p>
  <p>According to <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/QuickStartEC2Instance.html#running-ec2-step-2" rel="nofollow noreferrer">this documentation</a>, such info should be configured in <code>/etc/awslogs/awslogs.conf</code> (along with appropriate region setting in <code>/etc/awslogs/awscli.conf</code>).</p>
  <p>However, <a href="https://docs.aws.amazon.com/mobileanalytics/latest/ug/export-existing-redshift-cloudwatch.html" rel="nofollow noreferrer">this page</a> indicates that log source (can also? / should?) be configured in <code>/tmp/cwlogs/*.conf</code></p>
  <p>Won't the second option (under <code>/tmp</code>) lead to the conf file being lost after a reboot?</p>
  <p>Any idea what is the right place to store such configuration information?</p>