Now you are talking nonsense. If that's so much of an issue then why would there be well established libraries that I used?
Do you think I created those libraries myself? No.
So you should ask aws why they created such a library in the first place.
Every technology has it's own reason for existence. If this doesn't suit you nobody is forcing you to use it.
Not once in my article I said if my ways is secure or everybody should do it my way. Security is another concern for which there are experts. I am not one of them.
I just showed a way of doing a task using some established libraries that are used by millions of people.