You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While performing aws kms get-key-policy , for all the other CLI versions, the --policy-name is an optional argument but for v2.15.30 this is a required argument.
Also I couldn't find the documentation of v2.15.30.
For the latest aws cli v2, this is an optional argument as well. Thus, I think it is a bug in AWS CLI v2.15.30
Thanks for reaching out. It looks like this was change introduced in 2.15.31:
api-change:kms: Adds the ability to use the default policy name by omitting the policyName parameter in calls to PutKeyPolicy and GetKeyPolicy
So from 2.15.31 onward the policyName can be omitted. Closing as not a bug but expected behavior based on the version. Will also link documentation for reference:
This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
Describe the bug
While performing
aws kms get-key-policy
, for all the other CLI versions, the--policy-name
is an optional argument but for v2.15.30 this is a required argument.Also I couldn't find the documentation of v2.15.30.
For the latest aws cli v2, this is an optional argument as well. Thus, I think it is a bug in AWS CLI v2.15.30
Expected Behavior
--policy-name arg should be optional
Current Behavior
--policy-name arg is required
Reproduction Steps
aws kms get-key-policy --key-id <YOUR_KEY_ID>
Possible Solution
No response
Additional Information/Context
No response
CLI version used
2.15.30
Environment details (OS name and version, etc.)
mac
The text was updated successfully, but these errors were encountered: