Trying to automate daily analytics exports using the Python SDK and boto3. The script fetches the CSV blob successfully, but the subsequent s3.put_object call throws a ClientError: An error occurred (403) Forbidden even though the IAM role has s3:PutObject permissions on the target bucket.
Checked the policy attached to the execution role and it looks fine. The endpoint is correct and the key path matches. Any ideas why the SDK might be mangling the auth headers for the S3 request?