(cmd *cobra.Command, args []string)
| 786 | } |
| 787 | |
| 788 | func 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 | |
| 816 | func runECRCommand(cmd *cobra.Command, args []string) { |
| 817 | for _, profile := range AWSProfiles { |
nothing calls this directly
no test coverage detected