changed secret to secret_key and key to access_key