update ec2.py from Ansible