Using a k8s remote state data source from TFC/HCP throws Unauthorized error

when trying to create a remote state data source pointing to a k8s state from a TFC based apply run I always get the following error message:

error loading the remote state: Unauthorized

Worth mentioning using the TFE provider to fetch outputs from the other side, namely from the apply run which is using the k8s state works perfectly well.

1 Like