mozilla-aws-cli
mozilla-aws-cli copied to clipboard
Unset environment variables more consistently.
We noticed that maws currently does not unset the AWS_SECURITY_TOKEN evnironment variable, which can lead to confusing behaviour if it is still set. This PR makes sure this env variable is always unset, and makes unsetting env vars overall a bit more consistent.
It's not tested at all, and probably needs unit tests, so this is still a draft.
I think this is a good idea (unsetting those variables). This PR may be the way to do it, or maybe some other approach. Either way, ya we should introduce this change in some form.
Hey @smarnach have you been running this locally for a while? It seems fine to me with your update.
Yes, I ran this locally since I filed the PR, and didn't run into any issues.