Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AwsxUserMetadataCmd = &cobra.Command{ Use: "getListClusterMetaDataDetails", Short: "getListClusterMetaDataDetails command gets resource counts", Long: `getListClusterMetaDataDetails command gets resource counts details of an AWS account`, Run: func(cmd *cobra.Command, args []string) { log.Println("Command iam for user started") vaultUrl := cmd.PersistentFlags().Lookup("vaultUrl").Value.String() accountNo := cmd.PersistentFlags().Lookup("accountId").Value.String() region := cmd.PersistentFlags().Lookup("zone").Value.String() acKey := cmd.PersistentFlags().Lookup("accessKey").Value.String() secKey := cmd.PersistentFlags().Lookup("secretKey").Value.String() crossAccountRoleArn := cmd.PersistentFlags().Lookup("crossAccountRoleArn").Value.String() externalId := cmd.PersistentFlags().Lookup("externalId").Value.String() authFlag := authenticator.AuthenticateData(vaultUrl, accountNo, region, acKey, secKey, crossAccountRoleArn, externalId) if authFlag { listUserData(region, crossAccountRoleArn, acKey, secKey, externalId) } }, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.