code: def ec2_elasticip_elasticip_id(self, lookup, default=None):
      
  
      public_ip = self.ec2_elasticip_elasticip_ipaddress(lookup)
      if public_ip is None:
        return default
      try:
        eips = EFAwsResolver.__CLIENTS["ec2"].describe_addresses(
          PublicIps=[public_ip]
        )
      # Public IP not found
      except ClientError:
        return default
      eip_id = eips["Addresses"][0]["AllocationId"]
      return eip_id
docs: Args:
        lookup: the CloudFormation resource name of the Elastic IP ID to look up
        default: the optional value to return if lookup failed; returns None if not set
      Returns:
        The ID of the first Elastic IP found with a description matching 'lookup' or default/None if no match found