I had to do exactally this same task. What i ended up doing was ENCODED_SECRET_KEY=$(python3 -c "import urllib.parse; print(urllib.parse.quote('$NEW_SECRET_KEY', safe=''))") curl -k -u admin:Changethepassword \ https://localhost:8089/servicesNS/nobody/Splunk_TA_aws/splunk_ta_aws_aws_account/splunksvc \ -d key_id="$NEW_ACCESS_KEY" \ -d secret_key="$ENCODED_SECRET_KEY" \ -d category=1 So i generate a new key and secret key with AWS CLI then use that parser to encode it in a format that is happy.
... View more