I was able to work around this problem by using s3cmd
in my script instead of an S3 resource. I'm not sure why this worked but it did. I just changed the first line to:
INPUT_FILE_LIST=`/usr/bin/s3cmd ls s3://my-bucket/my-prefix`
and changed the grep
pattern in the third line to $name$
and it started working. Note that this seems odd since the script completes as written above if I remove the while loop.
Either way, problem "solved", although I'd be happy to replace this solution with one that is able to use the S3 data pipeline resource.