How to determine which DataSync agent is running on which EC2 instance

0

We have multiple DataSync Agents deployed to multiple EC2 instances.

Is there an easy way to see which Agent is running on which EC2 instance?

The AWS Management Console screens for DataSync don't not appear to show any identifier which links the agent to its EC2 host instance. The cli command "aws datasync describe-agent --argent-arn xxxx" doesn't seem to reveal the EC2 instance and the EC2 screens in the management console don't offer any clue.

We can add custom tags to the EC2 instance but is there any other way to see the link?

Thanks.

已提問 1 年前檢視次數 392 次
2 個答案
0
已接受的答案

Hello,

Greetings for the day!

As of now, Datasync Console or the "Describe-Agent" API call does not return EC2 instance ID or the IP associated. It only displays the below information when running describe-agent API call:

aws datasync describe-agent --agent-arn arn:aws:datasync:ap-south-1:xxxxxxxxxxxx:agent/agent-0f90ffa00ae8axyz2 --region ap-south-1

{ "AgentArn": "arn:aws:datasync:ap-south-1:xxxxxxxxxxxx:agent/agent-0f90ffa00ae8axyz2", "Name": "testDatasync", "Status": "ONLINE", "LastConnectionTime": "1970-01-01T05:30:00+05:30", "CreationTime": "2022-02-18T10:52:03.205000+05:30", "EndpointType": "PUBLIC" }

Thank you for providing your valuable feedback on the service. I have gone ahead and raised a feature request with the service team on your behalf. While I am unable to comment on if/when this feature may get released, I request you to keep an eye on our What's New and Blog pages for any new feature announcements.

https://aws.amazon.com/new/ https://aws.amazon.com/blogs/aws/

For now, I would suggest you to use custom tags on EC2 instances associated with Datasync agents to identify them based on the tags that you've assigned.

Thank you!!

AWS
支援工程師
已回答 1 年前
profile pictureAWS
專家
已審閱 1 年前
  • Thank for the feedback. It would be a nice feature to have but we can use custom tags for now.

0

The best way as of now is to login(ssh) to the datasync ec2 instance, the agent id will be mentioned in it.

Gtantse
已回答 6 個月前

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

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

回答問題指南