To change the default access and secret key, complete the following steps.

Note:

":" (colon) is a restricted character and not allowed in the access key or secret key.

  1. Connect to MongoDB by entering the following command:
    mongo --host <mongo-host> --port <mongo-port> --authenticationDatabase admin -u absuser -p abs123
    Note:

    absuser and abs123 are the default username and password for MongoDB.

  2. On the MongoDB prompt, run the following command:
    use abs_metadata
    db.auth_info.updateOne( { access_key: "<new-access-key>", secret_key: "<new-secret-key>"} )