This is needed for IAM Roles to work.
Disabling 'raise' when access_key and secret_key are not strings.