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: 1,685
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 Clients missing specific Office feature
by  CyberCitizen   Go to last post Go to first unread
Last post: Today at 1:28:26 AM(UTC)
Report Center Windows 10 compliance (color-coded)
by  CyberCitizen  
Go to last post Go to first unread
Last post: Today at 1:15:07 AM(UTC)
Lansweeper User association report query
by  endyk   Go to last post Go to first unread
Last post: Yesterday at 9:47:25 PM(UTC)
Lansweeper Report for SSAS and SSIS
by  The Boss  
Go to last post Go to first unread
Last post: 6/25/2019 6:53:21 PM(UTC)
Lansweeper Firefox 67.0.3 zero-day vulnerability
by  Esben.D   Go to last post Go to first unread
Last post: 6/25/2019 3:34:44 PM(UTC)
Lansweeper PO Box Query
by  kmoc  
Go to last post Go to first unread
Last post: 6/25/2019 11:16:28 AM(UTC)
Lansweeper Computer Age Chart Report
by  CyberCitizen   Go to last post Go to first unread
Last post: 6/25/2019 8:40:47 AM(UTC)
Lansweeper Dell SupportAssist CVE-2019-12280
by  Esben.D  
Go to last post Go to first unread
Last post: 6/24/2019 9:15:20 AM(UTC)