AWS Cloudfront Invalidation: aws: error: the following arguments are required: –invalidation-batch

This seems to be a duplicate of this question. I suggest any answers are given on the other thread.

On the other thread, I said:

OK, good stuff. I suggest you make a new post (in this thread) with your latest configuration attempt(s), so that people do not need to ask exactly what new things you’ve tried.

See the bolded part - duplicating questions is discouraged on the Internet, because it creates administrative overhead for readers, and several people may provide duplicate answers.