|
Download ai/ai-0014.jsonl from winapiadmin/tinycodinglm: direct link, hf CLI and curl.
- Browser
- Download file 1.23 kB
-
https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/main/ai/ai-0014.jsonl
- Command line
-
hf download hf://datasets/winapiadmin/tinycodinglm/ai/ai-0014.jsonl
-
curl -L -o ai-0014.jsonl https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/main/ai/ai-0014.jsonl
1.23 kB
| {"type": "session", "harness": "opencode", "id": "ai-0014", "name": "Terraform State Management"} | |
| {"type": "message", "message": {"role": "system", "content": "You are an expert software engineer."}} | |
| {"type": "message", "message": {"role": "user", "content": "How does Terraform manage state?"}} | |
| {"type": "message", "message": {"role": "assistant", "content": "Terraform state maps real-world resources to configuration. State is stored in a state file (terraform.tfstate) or remote backend.\n\nState structure:\n- version: State file version\n- terraform_version: TF version used\n- resources: List of managed resources with attributes\n- outputs: Module outputs\n- serial: Incremented on each change\n\nRemote backends:\n- S3 (with DynamoDB locking)\n- Consul (with locking)\n- Azure Blob Storage\n- Google Cloud Storage\n- Terraform Cloud\n\nState locking:\n- Prevents concurrent modifications\n- Automatic lock acquisition on plan/apply\n- Manual unlock with terraform force-unlock\n\nBest practices:\n- Never commit state to version control\n- Use remote backends for team collaboration\n- Enable state encryption at rest\n- Use workspaces for environment separation\n- Import existing resources with terraform import"}} | |