Topic:   cli config command not working.
Mar 08, 2021 13:55 1 Replies 890 Views ALLINO

I am using version 2 of the cli. trying to run the aws configure command, downloaded the csv file for a new user and get the error 'Expected header "User Name" not found. i finally got a csv download file that looks like its in the right format. but still no good. tried pointing at the download directory, still no good. The command looks like this:

aws configure import --csv C:\Users\system\Downloads\new_user_credentials-1.csv

Prev Next
Topic Replies (1)
  1. 1
    idnkx user

    JOSEPH

    I am using version 2 of the cli. trying to run the aws configure command, downloaded the csv file for a new user and get the error 'Expected header "User Name" not found. i finally got a csv download file that looks like its in the right format. but still no good. tried pointing at the download directory, still no good. The command looks like this:

    aws configure import --csv C:\Users\system\Downloads\new_user_credentials-1.csv
    Ans:
    The exported CSV from AWS Console did not include the User Name column.
    The solution is to edit the CSV file and add the User Name column as follows:

    User Name,Access key ID,Secret access key
    yourUserName,yourKeyId,yourSecretAccessKey

    Then run the command with the "file://" prefix to the file path.
    You should expect to see the successful output.

    $ aws configure import --csv file://your_credentials.csv
    Successfully imported 1 profile(s)

Leave a Reply
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect