Continuing the discussion from https://github.com/ansible/ansible/pull/5156.
I don’t see anything stopping users from creating directories and symlinking to a shared script. That’s basically what I’m doing using my symlink technique, just without separate directories. The main issue I was trying to solve is being able to refer to use multiple accounts, which isn’t easily accomplished using the boto config file. Once that issue is solved, the techniques in which a user can refer to the different accounts/environments are many.
For example, you could use my wrapper script technique and refer to different ec2.ini files, or you could use your suggested technique of different folders. I actually prefer leaving that part a bit open and simply suggesting techniques. Different users will prefer different ways of referring to their inventory files, but if the ec2.py inventory script doesn’t allow you to override your credentials, your options for supporting different accounts per environment is pretty limited.
I’m a little bit confused about the statement “Users can also make use of named vars files for pulling different credentials.”, though. Am I incorrect in thinking that you currently have to have the credentials defined fully ahead of time for the ec2.py script to pull in the inventory? That is, can you even use named vars for defining account credentials?