Notification

Icon
Error

AWS: Number of instances per VPC (Built-in)

Posted: Tuesday, March 5, 2019 1:18:55 PM(UTC)
Esben.D

Esben.D

Member Administration Original PosterPosts: 2,187
0
Like
The report below gives back a count of the AWS Instances per VPC.

The report will only list VPCs when the following criteria are met:
  • You have Lansweeper 7.1 or higher.
  • There is AWS VPC and Instance data scanned.

Code:
Select Top 1000000 tblAssets.AssetID,
  tblAssets.AssetName As VPC,
  Count(tblAWSInstance.AWSInstanceId) As #OfInstances
From tblAssets
  Inner Join tblAWSContainer On tblAWSContainer.AssetID = tblAssets.AssetID
  Inner Join tblAWSInstance On tblAWSInstance.AWSContainerId =
    tblAWSContainer.AWSContainerId
Where (tblAWSContainer.VpcId != '' Or tblAWSContainer.VpcId != Null)
Group By tblAssets.AssetID,
  tblAssets.AssetName
Order By #OfInstances Desc

Active Discussions

Lansweeper Version 10.2.0.0
by  _Shawn_   Go to last post Go to first unread
Last post: 7/1/2022 10:33:33 PM(UTC)
Lansweeper Certificates
by  Orion Poplawski  
Go to last post Go to first unread
Last post: 7/1/2022 10:11:12 PM(UTC)
Lansweeper Dell warranty lookup not working
by  LANGuy  
Go to last post Go to first unread
Last post: 7/1/2022 1:30:06 PM(UTC)
Lansweeper RedHat 8.5 & SELinux
by  QuelleAcht   Go to last post Go to first unread
Last post: 7/1/2022 1:16:19 PM(UTC)
Lansweeper Suddenly seeing Access Denied scanning errors?
by  Erik.T  
Go to last post Go to first unread
Last post: 7/1/2022 9:38:17 AM(UTC)
Lansweeper Single Line report with H/D
by  Ioannis   Go to last post Go to first unread
Last post: 7/1/2022 7:53:23 AM(UTC)
Lansweeper Lansweeper Dark Theme
by  mrobbins  
Go to last post Go to first unread
Last post: 6/30/2022 5:38:01 PM(UTC)