Hello, I have the following setup:
- I use free plan for Terraform Cloud and I have a single workspace
- I have a single EC2 instance, on which I bootstrap a single-node K8s cluster
- I add this node to my Tailscale network, so I have no open ports on that machine
- I use Kubernetes provider and on the host field I provide the Tailscale’s DNS record for the given instance
terraform applyfails, because it can’t resolve the given DNS, because the Terraform Cloud runner is not in my Tailscale network
My question is there a way to keep the state file on Terraform Cloud, but to make the actual run on my local machine(which is in my Tailscale network), while Terraform Cloud locks the state file.
If you have other suggestions how to resolve this issue I will appriciate it.