def METHOD_NAME(self) -> "Resource":
    try:
        cred_value = _get_k8s_cred_value()
        if not _is_eks(cred_value):
            raise RuntimeError(
                "Could not confirm process is running on EKS."
            )
        cluster_name = _get_cluster_name(cred_value)
        container_id = _get_container_id()
        if not container_id and not cluster_name:
            raise RuntimeError(
                "Neither cluster name nor container ID found on EKS process."
            )
        return Resource(
            {
                ResourceAttributes.CLOUD_PROVIDER: CloudProviderValues.AWS.value,
                ResourceAttributes.CLOUD_PLATFORM: CloudPlatformValues.AWS_EKS.value,
                ResourceAttributes.K8S_CLUSTER_NAME: cluster_name,
                ResourceAttributes.CONTAINER_ID: container_id,
            }
        )
    # pylint: disable=broad-except
    except Exception as exception:
        if self.raise_on_error:
            raise exception
        logger.warning("%s failed: %s", self.__class__.__name__, exception)
        return Resource.get_empty()