The latest atlassian/pipelines-awscli doesn't work correctly. Looks like it was just updated. The python installation isn't right, so aws cli commands don't work.
We reverted to the "last working version" with
atlassian/pipelines-awscli:1.16.302
same here
/usr/bin/aws: /usr/bin/python2: bad interpreter