Fix unused arguments in S3 external pillar

Fixes #14322.