MCPcopy Create free account
hub / github.com/BishopFox/cloudfox / runDatabasesCommand

Function runDatabasesCommand

cli/aws.go:788–814  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

786}
787
788func runDatabasesCommand(cmd *cobra.Command, args []string) {
789 for _, profile := range AWSProfiles {
790 sharedServiceMap := &awsservicemap.AwsServiceMap{
791 JsonFileSource: "DOWNLOAD_FROM_AWS",
792 }
793 var AWSConfig = internal.AWSConfigFileLoader(profile, cmd.Root().Version, AWSMFAToken)
794 caller, err := internal.AWSWhoami(profile, cmd.Root().Version, AWSMFAToken)
795 if err != nil {
796 continue
797 }
798
799 m := aws.DatabasesModule{
800 RDSClient: rds.NewFromConfig(AWSConfig),
801 RedshiftClient: redshift.NewFromConfig(AWSConfig),
802 DynamoDBClient: dynamodb.NewFromConfig(AWSConfig),
803 Caller: *caller,
804 AWSRegions: internal.GetEnabledRegions(profile, cmd.Root().Version, AWSMFAToken),
805 AWSProfile: profile,
806 Goroutines: Goroutines,
807 WrapTable: AWSWrapTable,
808 AWSOutputType: AWSOutputType,
809 AWSTableCols: AWSTableCols,
810 ServiceMap: sharedServiceMap,
811 }
812 m.PrintDatabases(AWSOutputDirectory, Verbosity)
813 }
814}
815
816func runECRCommand(cmd *cobra.Command, args []string) {
817 for _, profile := range AWSProfiles {

Callers

nothing calls this directly

Calls 4

PrintDatabasesMethod · 0.95
AWSConfigFileLoaderFunction · 0.92
AWSWhoamiFunction · 0.92
GetEnabledRegionsFunction · 0.92

Tested by

no test coverage detected