That is a global var that comes from the import statement below (from ansible.module_utils.ec2 import *). lib/ansible/module_utils/ec2.py

That module ec2.py, is a helper/util module for ec2/aws.