I am writing an AWS Lamda in C# using this example:
I have set my credentials in the environmental variables according to this document:
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html
But when I try to upload my lamda I get errors about not having the correct IAM roles. However, the account name in the error message is not the same as the account I put into the credentials in the environmental variables. It relates to an account on a different S3 bucket which I was testing with little while ago.
Where is it reading this from?