Factor out S3 creds.