Skip to content

Commit

Permalink
🧹 simplify aws discovery by moving all related code into resources/di…
Browse files Browse the repository at this point in the history
…scovery.go (#1877)
  • Loading branch information
chris-rock authored Sep 24, 2023
1 parent d3f44c0 commit 55f5c58
Show file tree
Hide file tree
Showing 3 changed files with 140 additions and 146 deletions.
56 changes: 28 additions & 28 deletions providers/aws/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ package config

import (
"go.mondoo.com/cnquery/providers-sdk/v1/plugin"
"go.mondoo.com/cnquery/providers/aws/connection"
"go.mondoo.com/cnquery/providers/aws/connection/awsec2ebsconn"
"go.mondoo.com/cnquery/providers/aws/provider"
"go.mondoo.com/cnquery/providers/aws/resources"
)

var Config = plugin.Provider{
Expand All @@ -23,35 +23,35 @@ var Config = plugin.Provider{
MinArgs: 0,
MaxArgs: 4,
Discovery: []string{
connection.DiscoveryAccounts,
connection.DiscoveryAll,
connection.DiscoveryAuto,
resources.DiscoveryAccounts,
resources.DiscoveryAll,
resources.DiscoveryAuto,

connection.DiscoveryInstances,
connection.DiscoverySSMInstances,
connection.DiscoveryECR,
connection.DiscoveryECS,
resources.DiscoveryInstances,
resources.DiscoverySSMInstances,
resources.DiscoveryECR,
resources.DiscoveryECS,

connection.DiscoveryResources,
connection.DiscoveryS3Buckets,
connection.DiscoveryCloudtrailTrails,
connection.DiscoveryRdsDbInstances,
connection.DiscoveryVPCs,
connection.DiscoverySecurityGroups,
connection.DiscoveryIAMUsers,
connection.DiscoveryIAMGroups,
connection.DiscoveryCloudwatchLoggroups,
connection.DiscoveryLambdaFunctions,
connection.DiscoveryDynamoDBTables,
connection.DiscoveryRedshiftClusters,
connection.DiscoveryVolumes,
connection.DiscoverySnapshots,
connection.DiscoveryEFSFilesystems,
connection.DiscoveryAPIGatewayRestAPIs,
connection.DiscoveryELBLoadBalancers,
connection.DiscoveryESDomains,
connection.DiscoveryKMSKeys,
connection.DiscoverySagemakerNotebookInstances,
resources.DiscoveryResources,
resources.DiscoveryS3Buckets,
resources.DiscoveryCloudtrailTrails,
resources.DiscoveryRdsDbInstances,
resources.DiscoveryVPCs,
resources.DiscoverySecurityGroups,
resources.DiscoveryIAMUsers,
resources.DiscoveryIAMGroups,
resources.DiscoveryCloudwatchLoggroups,
resources.DiscoveryLambdaFunctions,
resources.DiscoveryDynamoDBTables,
resources.DiscoveryRedshiftClusters,
resources.DiscoveryVolumes,
resources.DiscoverySnapshots,
resources.DiscoveryEFSFilesystems,
resources.DiscoveryAPIGatewayRestAPIs,
resources.DiscoveryELBLoadBalancers,
resources.DiscoveryESDomains,
resources.DiscoveryKMSKeys,
resources.DiscoverySagemakerNotebookInstances,
},
Flags: []plugin.Flag{
{
Expand Down
80 changes: 0 additions & 80 deletions providers/aws/connection/discovery.go

This file was deleted.

Loading

0 comments on commit 55f5c58

Please sign in to comment.