AWS CLI Query - describe-keys with parameters

牧云@^-^@ 提交于 2019-12-02 21:57:41

问题


So this week, I have started to begin learning the CLI and seeing what can be done within this.

I was given the task of grabbing information regarding this:

  • Key Alias
  • Key ID
  • All associated tags

I have tried many methods within this... and can't seem to get anywhere. I have only been doing this for around 4 days and I just began documenting key API calls that will come in use for the future.

I seem to not be able to grab this in a --output table.

If anyone could be able to give me a guidance on this.

Also, does anyone have any tips from someone who is just starting his Cloud Journey and any tips?

Thanks


回答1:


You can use following command to list all of your kms keys (KeyId and KeyArn Vaules) with the table format.

aws kms list-keys --query Keys[*].[KeyId,KeyArn] --output table



来源:https://stackoverflow.com/questions/56490451/aws-cli-query-describe-keys-with-parameters

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!