I'm having a bit of trouble with Terraform. I have a Terraform project which is shared by a few developers and uses non-default workspaces (i.e. named workspaces, not the default one). I would like all the developers to share access to the Terraform state of this shared workspace the same way as if it was the default workspace. I have set up remote state with S3, so the state file is singleton, but for some reason I can't get the remote state file to be recognized on each developer's machine.
Basically the workflow I would like is, when developer A pushes a change to Terraform (using
terraform apply) then any other developer who runs
terraform state list should see that change reflected in the deployed infra, and that this workflow should work for any workspace, not only the default workspace.
How do I accomplish this?