Hi Team,
The following example creates a CloudFront public key by providing the parameters in a JSON file named pub-key-config.json. Before you can use this command, you must have a PEM-encoded public key.
$ aws cloudfront create-public-key --public-key-config file://pub-key-config.json