I have searched on the web for over two days now, and probably have looked through most of the online documented scenarios and workarounds, but nothing worked for me so far.
I had to set
Aws.config.update({ credentials: Aws::Credentials.new(access_key_id, secret_access_key) })
before with the ruby aws sdk v2 (there is probably something similiar to this in the other languages as well)