aws cli credential configuration issue

0

I need to run the CloudWatch log agent on the machine, and I also need to run the codedeploy agent. The two services are not in the same region. codedeploy is located in us-east-1. Logs need to be uploaded to us-gov-West, but codedeploy needs to delete /root/.aws/credentials or /home/{user}/.aws/credentials to connect. Log upload requires configuring AWS CLI credentials. How should I resolve this conflict?

  • Where is the machine, in AWS or outside of AWS. If in AWS what region?

DD-Boom
질문됨 5달 전175회 조회
1개 답변
0

Hello, please share more information regarding where is your machine ? Is it an on-prem server or an EC2 instance ? If it is an EC2 instance then it is present in which region ? In order to use different regions. If this is an on-prem server then you can consider using different profiles for CodeDeploy agent and CloudWatch agent. Each profile configured for a different region.

An example of how to configure CloudWatch agent with an IAM profile : https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/install-CloudWatch-Agent-commandline-fleet.html#install-CloudWatch-Agent-iam_user-first

You can also consider raising support case to get more information on this.

AWS
답변함 5달 전
  • The EC2 instance I use is located in the us-east-1 region, and the logs need to be uploaded to cloudwatch in us-gov-west-1

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

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

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

관련 콘텐츠