How can the cloudwatch agent associate an AWS key with multiple AWS keys configured in different regions?

1

My Ubuntu instance is in the us-east-1 region, but I want to upload the logs to cloudwatch logs in us-gov-west-1. The AMI of the default aws key is in the us-east-1 region. What should I do? Configure the AWS key to upload logs to the gov region. Currently, I have configured multiple AWS credentials. There are instances in the same region and gov region. Because I need to run cloud deploy-agent, the default AWS credentials must be configured to be related to us-east-1. Is there any way to deploy in this region? Are both agent and uploading logs to the gov area normal AWS credential configuration solutions?

DD-Boom
질문됨 6달 전182회 조회
1개 답변
0
수락된 답변

Hello.

There is a setting value called "shared_credential_profile=" in the file "/opt/aws/amazon-cloudwatch-agent/etc/common-config.toml".
I thought that if I set up a credential profile with "us-gov-west-1" set with this setting value, I could output logs to another region.
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/install-CloudWatch-Agent-on-EC2-Instance-fleet.html#CloudWatch-Agent-profile-instance-fleet

profile picture
전문가
답변함 6달 전
profile pictureAWS
전문가
검토됨 6달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠