If we're using static credentials, either both the access key and secret key must be set, or neither of them should be.