-1

When I run the following command, this is what I get.

$ aws ec2 get-ebs-default-kms-key-id --region us-west-2
{
    "KmsKeyId": "alias/aws/ebs"
}

But what I really want is the key id under "(default) aws/ebs" (shown below).

enter image description here

user180574
  • 5,681
  • 13
  • 53
  • 94

1 Answers1

1

You can use this command to get the key ids for all the keys in your account.

aws kms list-aliases --query 'Aliases[*].TargetKeyId'
Brian
  • 1,056
  • 9
  • 15