Thanks Andreas !!!
But my issue was something else and now its fixed.
It got solved by moving my AWS code into a backend file. Initially it was present in one of mt frontend file.
That’s what happens when you are a non - technical first time coder and don’t know the basics … my bad :).