amazon-cloudwatch-agent icon indicating copy to clipboard operation
amazon-cloudwatch-agent copied to clipboard

Common-Config.toml File doesn't work

Open suesther opened this issue 4 months ago • 1 comments

Hello! I'm currently working on creating a Cloudwatch agent on my Linux 2 Cloud Desktop, and when I try to start the agent, it works when I manually set the credentials from "default" with aws configure AmazonCloudWatchAgent.

If I try using common-config.toml in order to set the credentials to point to default, the credentials don't work though. Are the credentials supposed to look like this?

 [credentials]
    shared_credential_profile = "default"
    shared_credential_file = "/root/.aws/credentials"

I also tried keeping shared_credential_file commented out or setting it to "~/.aws/credentials"

suesther avatar Sep 18 '25 17:09 suesther

Hi @suesther, thanks for bringing up this issue. For the agent configuration, did you set the run_as_user key to a non-root user?

zhihonl avatar Oct 05 '25 16:10 zhihonl