builtin/providers/aws: fix printf verb and use a clear return stmt