Each Terraform configuration has an associated backend that defines how operations are executed and where persistent data such as the Terraform state are stored.
Review the Workspaces documentation.
TFE provider
Managing credentials