Link to home
Start Free TrialLog in
Avatar of Richard Comito
Richard ComitoFlag for United States of America

asked on

How to pull all the Instance Data on all EC2 instance at one time

I have an AWS EC2 environment with 30 instances.  I wanted to know if there is a service or a way to pull all the instance Info at one time, like in a SQL query.

Thanks,

Rich
Avatar of David Favor
David Favor
Flag of United States of America image

My first thought was just use rsync, targeting the exact data of interest.

Or run LXD on all instances, then just export the entire container, if having a self-referenced, encapsulated, bootable unit is required.
Avatar of Richard Comito

ASKER

Hi David,

Thanks for the reply.

I was looking at utilizing AWS Config to pull the Instance Config Data.  I was able to get everything I need except the Instance name.  I can get the ID but not the name.

Do you know what column would hold that info?

SELECT
     configuration.instanceId,
    awsRegion,
     configuration.rootDeviceName,
     configuration.name,
     configuration.publicIpAddress,
     configuration.privateIpAddress
WHERE
  resourceType = 'AWS::EC2::Instance'
ASKER CERTIFIED SOLUTION
Avatar of Ramasamy P
Ramasamy P
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Ramasamy P.