When attempting to call aws kms get-parameters-for-import --key-id .... --wrapping-algorithm RSAES_OAEP_SHA_1 --wrapping-key-spec RSA_2048
I receive an error Unknown output type: q
. I'm following the instructions in http://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-get-public-key-and-token.html but not having luck with that step.
Asked
Active
Viewed 812 times
0

gdevito
- 5
- 2
-
3Do other aws cli commands work? You might have an invalid output type set in the cli tool's config file? – Mark B Nov 03 '17 at 14:42
-
Trying to update `awscli` couldn't hurt either. – kichik Nov 03 '17 at 16:47
-
1Agree with Mark, please run the aws configure again and set the valid output e.g. json or text. – sudo Nov 03 '17 at 22:54
-
@MarkB That was it, thank you! – gdevito Nov 07 '17 at 16:56
1 Answers
0
As explained in the documentation, AWS CLI supports this four output formats:
- json
- yaml (Available in the AWS CLI version 2 only.)
- text
- table
According to the AWS CLI configuration topic you have three ways to specify the output format:
Using the
output
option in a named profile in theconfig
file[default]
output=text
Using the
AWS_DEFAULT_OUTPUT
environment variable$ export AWS_DEFAULT_OUTPUT="table"
Using the
--output
option on the command line:$ aws s3 ls --output json

Vadim Yangunaev
- 1,817
- 1
- 18
- 41