1 Answer
- Newest
- Most votes
- Most comments
2
Hello.
Looking at the code, it says "awscli", but I think it should be "aws" to run AWS CLI commands.
So I think you need to do something like this:
aws kms get-key-rotation-status --key-id
In fact, when I ran the above command in my AWS account, I saw the response described in the documentation.
Also, since you seem to be using Python, I think it would be a good idea to use "boto3" instead of running the AWS CLI.
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kms/client/get_key_rotation_status.html#
Relevant content
- asked 3 years ago
- asked 2 years ago
