boto / botocore

The low-level, core functionality of boto3 and the AWS CLI.
Apache License 2.0
1.44k stars 1.06k forks source link

Fix documentation for ec2 import-key-pair for how to properly base64-encode keyfiles #3129

Open victorhooi opened 4 months ago

victorhooi commented 4 months ago

Fixes the long-running confusion around base64-encoding and CLI V2:

AWS CLI V2 changed how it processes binary input types.

This means the CLI documentation was now incorrect - the CLI won't automatically do the base64 encoding for you when calling aws ec2 import-key-pair - you need to explicitly call fileb:// yourself.

Very small doc change, which should hopefully reduce confusion - let me know if I've missed something.