Im currently using the credential file (~/.aws/credentials) to initialize the SDK.
Credential File format.
aws_access_key_id={YOUR_ACCESS_KEY_ID}
aws_secret_access_key={YOUR_SECRET_ACCESS_KEY}
My requirement is to switch between multiple aws accounts. I'm currently trying to resolve this by overwriting the file with new credentials and re initialize the sdk. Is there any other efficient workaround to resolve this ? Thanks in Advance.