AWS CLI查询-带参数的describe-keys [英] AWS CLI Query - describe-keys with parameters

查看:109
本文介绍了AWS CLI查询-带参数的describe-keys的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,本周,我开始学习CLI,并了解可以在其中进行的工作.

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:

  • 关键别名
  • 密钥ID
  • 所有关联的标签

我在其中尝试了许多方法...似乎无法解决任何问题.我只做了大约4天,就开始记录将在将来使用的关键API调用.

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.

我似乎无法在--output表中获取它.

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.

还有,有人从刚开始他的Cloud Journey的人那里得到任何提示吗?

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

谢谢

推荐答案

您可以使用以下命令以表格格式列出所有kms密钥(KeyId和KeyArn Vaules).

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]-输出表

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

这篇关于AWS CLI查询-带参数的describe-keys的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆