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

Function runAccessKeysCommand

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

Source from the content-addressed store, hash-verified

668}
669
670func 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
689func runApiGwCommand(cmd *cobra.Command, args []string) {
690 for _, profile := range AWSProfiles {

Callers

nothing calls this directly

Calls 3

PrintAccessKeysMethod · 0.95
AWSWhoamiFunction · 0.92
AWSConfigFileLoaderFunction · 0.92

Tested by

no test coverage detected