Richard Comito
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
Thanks,
Rich
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'
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Ramasamy P.
Or run LXD on all instances, then just export the entire container, if having a self-referenced, encapsulated, bootable unit is required.