MCPcopy Index your code
hub / github.com/BishopFox/cloudfox / runCodeBuildCommand

Function runCodeBuildCommand

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

Source from the content-addressed store, hash-verified

759}
760
761func runCodeBuildCommand(cmd *cobra.Command, args []string) {
762 for _, profile := range AWSProfiles {
763 sharedServiceMap := &awsservicemap.AwsServiceMap{
764 JsonFileSource: "DOWNLOAD_FROM_AWS",
765 }
766 var AWSConfig = internal.AWSConfigFileLoader(profile, cmd.Root().Version, AWSMFAToken)
767 caller, err := internal.AWSWhoami(profile, cmd.Root().Version, AWSMFAToken)
768 if err != nil {
769 continue
770 }
771 m := aws.CodeBuildModule{
772 CodeBuildClient: codebuild.NewFromConfig(AWSConfig),
773 Caller: *caller,
774 AWSRegions: internal.GetEnabledRegions(profile, cmd.Root().Version, AWSMFAToken),
775 AWSProfile: profile,
776 Goroutines: Goroutines,
777 SkipAdminCheck: AWSSkipAdminCheck,
778 WrapTable: AWSWrapTable,
779 AWSOutputType: AWSOutputType,
780 AWSTableCols: AWSTableCols,
781 PmapperDataBasePath: PmapperDataBasePath,
782 ServiceMap: sharedServiceMap,
783 }
784 m.PrintCodeBuildProjects(AWSOutputDirectory, Verbosity)
785 }
786}
787
788func runDatabasesCommand(cmd *cobra.Command, args []string) {
789 for _, profile := range AWSProfiles {

Callers

nothing calls this directly

Calls 4

AWSConfigFileLoaderFunction · 0.92
AWSWhoamiFunction · 0.92
GetEnabledRegionsFunction · 0.92

Tested by

no test coverage detected