Hi Gustaf,
thank you for taking the time to answer, I didn't know that Tcl doesn't expand the tilde.
The AWS CLI searches the credentials into the ~/.aws/credentials folder but, as you suggested, setting some environment variables fixed the problem.
Claudio