#Writing to S3 bucket using ansible

1 messages · Page 1 of 1 (latest)

bleak goblet
#

Got a weird one. I created an ansible playbook to pull some chunks of json data, b64encode it, and then write that info into json files in an s3 bucket on Ontap 9.15.1p8. This works fine when running the playbook on my local computer, but when I push it up to AWX (will be a scheduled job) I get an error. x-amz-content-sha256 must be UNSIGNED-PAYLOAD, STREAMING-AWS4-HMAC-SHA256-PAYLOAD or a valid sha256 value.

I'm using the amzon.aws.s3_object module. I tried adding x-amz-content-sha256: "{{ sha256_hash }}" in the header with sha256_hash being the hash of the json data, and I get the same error. I tried UNSIGNED-PAYLOAD with the same result. The AWX execution environment is fairly similar to my local execution environment (my local has a ton of collections I don't really need but tried once, but nothing is missing in AWX). It's weird that it works just fine locally, but once it is in AWX it throws the error.

Anyone have any ideas on what else to try?

floral wolf
#

what signature are you using for authentication? You probably need signature V4