AWS CLI is configured with multiple credentials, how does the CloudWatch Logs agent specify the credentials?

0

Multiple credentials are configured in the ~/.aws/credentials file, including us-east-1 and us-gov-West-1. The default is the credentials of us-east-1. I need to upload the logs to the gov area. For cloudwatch, how do you configure the configuration file awslogs.conf of the cloudwatch log agent? ​ It was normal to use the gov region's credentials by default before. Now the logs will not be uploaded after the default credentials are changed to us-east-1.

DD-Boom
已提問 5 個月前檢視次數 219 次
1 個回答
0
已接受的答案

From the query, I understand that you are using the awslogs agent (older logs agent that is deprecated).

You can specify the AWS access key ID, AWS secret access key, and Default Region name while installing the agent. The CloudWatch Logs agent installer will ask you to provide certain information during the setup. I would suggest you to reinstall the agent while providing the correct access key IDs and region information.

Please feel free to refer to the following documentation for more details:

[+] https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/QuickStartEC2Instance.html#running-ec2-step-2

Furthermore, I would also request you to please reach out to the AWS support team via Support console for any further concerns and we will investigate the same in detail. Hope the information provided above is helpful. Have a great day ahead.

AWS
支援工程師
已回答 5 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南

相關內容