0

With the aws cli (version 2) I have created an access key for an iam user, which produces json output. I pipe that output to a file.

Now I would like to import these credentials to my aws cli configuration. aws cli has the aws configure import command, but it only accepts a .csv file genereated by the web console.

What is the simplest way to import the access key in json format, short of parsing it and creating the desired csv structure?

Isaac
  • 1,215
  • 3
  • 26
  • 44

1 Answers1

1

IMHO, not the simplest way but there is this method of sourcing external program to read the creds in json format.

mino
  • 76
  • 1
  • That is actually pretty close to what I need, since the external programm is expected to generate the json that I already have. So a simple `cat creds.json` in the config should do the trick. – Isaac Aug 05 '22 at 08:53