(cmd *cobra.Command, args []string)
| 668 | } |
| 669 | |
| 670 | func runAccessKeysCommand(cmd *cobra.Command, args []string) { |
| 671 | for _, profile := range AWSProfiles { |
| 672 | caller, err := internal.AWSWhoami(profile, cmd.Root().Version, AWSMFAToken) |
| 673 | if err != nil { |
| 674 | continue |
| 675 | } |
| 676 | m := aws.AccessKeysModule{ |
| 677 | IAMClient: iam.NewFromConfig(internal.AWSConfigFileLoader(profile, cmd.Root().Version, AWSMFAToken)), |
| 678 | Caller: *caller, |
| 679 | AWSProfile: profile, |
| 680 | Goroutines: Goroutines, |
| 681 | WrapTable: AWSWrapTable, |
| 682 | AWSOutputType: AWSOutputType, |
| 683 | AWSTableCols: AWSTableCols, |
| 684 | } |
| 685 | m.PrintAccessKeys(AccessKeysFilter, AWSOutputDirectory, Verbosity) |
| 686 | } |
| 687 | } |
| 688 | |
| 689 | func runApiGwCommand(cmd *cobra.Command, args []string) { |
| 690 | for _, profile := range AWSProfiles { |
nothing calls this directly
no test coverage detected