I have gone through the question titled \"Setting the AWS region programmatically 1\" but it doesn\'t provide all the answers I need.
Q1: I\'m getting a SDKCli
Actually, while I faced this issue was not possible to update the code all the time.
Thus we need to look into the reasons why it's happening, While investigating I found there is .aws
folder created at your root. It was created because I tried to install aws console
some time back.
The solution is you need to update your config file with region.