The docs for the EC2 module mention that you have to set aws_secret_key, aws_access_key and aws_url. But in Ansible version 2.3 (pulled from the PPA) both the env variables and the parameters should be ec2_secret_key, etc. So, replace aws with ec2.
There is no Ansible 2.3 release, I assume you meant 1.3.
Yes, we cleaned up consistency on all of these, keeping the old parameters as aliases for backwards compatibility.
Please file a bug on github.com/ansible/ansible so we can update the docs, or alternatively, submit a pull request to update the module source (documentation is embedded, see library/cloud in the checkout).
Sorry for the confusion here. I’m using 1.2.3, the latest stable version I believe. Now that I have had a chance to look at 1.3, I see what you are referring to. The docs are correct for 1.3 and the EC2 module checks for both the old parameter and the changed parameters. So, I guess this problem will work itself out since 1.3 is fast approaching release.
Thanks for the heads up, I will switch to 1.3 since it has features that I need.