Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AwsxMemorydbMetadataCmd = &cobra.Command{ Use: "getListMemorydbMetaDataDetails", Short: "getListMemorydbMetaDataDetails command gets resource counts", Long: `getListMemorydbMetaDataDetails command gets resource counts details of an AWS account`, Run: func(cmd *cobra.Command, args []string) { log.Println("Command memory db 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 { getListCluster(region, crossAccountRoleArn, acKey, secKey, externalId) } }, }
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.