  def GetInstanceProfileAttachment(
      self,
      instance_id: str) -> Tuple[str, str]:
    """Get the instance profile attached to the instance, if any.

    Args:
      instance_id (str): The instance ID (i-xxxxxx)

    Returns:
      Tuple[str, str]: A tuple containing the association id of the profile
        attachment, and the Arn of the Instance profile attached. Both are None
        if no profile is attached, or the instance cannot be found.

    Raises:
      ResourceNotFoundError: If the instance does not exist.
    """
    try:
      client = self.aws_account.ClientApi(common.EC2_SERVICE)
      response = client.describe_iam_instance_profile_associations(
        Filters=[{
              'Name': 'instance-id',
              'Values': [instance_id]
        }])
      print(response)
      if not response['IamInstanceProfileAssociations']:
        return '', ''
      return response['IamInstanceProfileAssociations'][0]['AssociationId'],\
        response['IamInstanceProfileAssociations'][0]['IamInstanceProfile']\
          ['Arn']
    except  client.exceptions.ClientError as exception:
      raise errors.ResourceNotFoundError(
        'Instance does not exist: {0!s}'.format(
           exception), __name__) from exception
Get the instance profile attached to the instance, if any.

Args:
instance_id (str): The instance ID (i-xxxxxx)

Returns:
Tuple[str, str]: A tuple containing the association id of the profile
attachment, and the Arn of the Instance profile attached. Both are None
if no profile is attached, or the instance cannot be found.

Raises:
ResourceNotFoundError: If the instance does not exist.
libcloudforensics/providers/aws/internal/ec2.py