code: def print_ec2_info(region,
                     instance_id,
                     access_key_id,
                     secret_access_key,
                     username):
      
      data = get_ec2_info(instance_id=instance_id,
                          region=region,
                          access_key_id=access_key_id,
                          secret_access_key=secret_access_key,
                          username=username)
  
      log_green("region: %s" % data['region'])
      log_green("Instance_type: %s" % data['instance_type'])
      log_green("Instance state: %s" % data['state'])
      log_green("Public dns: %s" % data['public_dns_name'])
      log_green("Ip address: %s" % data['ip_address'])
      log_green("volume: %s" % data['volume'])
      log_green("user: %s" % data['username'])
      log_green("ssh -i %s %s@%s" % (env.key_filename,
                                     username,
                                     data['ip_address']))
docs: outputs information about our EC2 instance