I’m experimenting with the “terraform remote”, aka “terraform enterprise” remote. I previously have had remote state in s3. A repo might look like this:
myrepo/ project_a/main.yml project_b/main.yml
In that case, the “key” param of the s3 backend might be “project_a” and “project_b”. Some interpolation is required when pulling the
terraform_remote_state to interpolate with workspaces.
Moving to the “remote” remote means there’s a name (no workspace support) or a prefix. I thought that I should use a prefix of
myrepo- but it seems to stomp on the subdirs. Should I be using a prefix of
myrepo-project_a- and so on? I just can’t tell if that’s the best practice.