# HashiCorp Terraform v1.10+ HCL, State Locking, Moved Blocks & Tests > Verified Terraform 1.8 to 1.10+ reference: native S3 lockfiles, ephemeral values, write-only attributes, moved/import blocks, and terraform test. ## Corpus Summary - Canonical Space URL: https://voxell.ai/p/terraform-docs - Documents indexed: 4 (10 passages, 8.8 KB) - Citation Readiness (Aggarwal GEO): 48/100 (stat_density=0.00, self_contained=0.80) - Full machine-readable corpus bundle: https://voxell.ai/s/terraform-docs/llms-full.txt ## Agent & MCP Integration (Zero API Key Required) Connect any MCP client or autonomous agent directly via Streamable HTTP: - Endpoint: `POST https://voxell.ai/s/terraform-docs/mcp` - Tools: `search_verified_docs` (grounded passage search), `ask_cited_answer` (cited synthesis) ```bash curl -sS -X POST https://voxell.ai/s/terraform-docs/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_verified_docs","arguments":{"query":"key facts and specifications","top_k":5}}}' ``` ## Document & Section Map - **official_ref_2_raw_githubusercontent_com_ha.md** (5 passages, 4 KB) - Section: raw.githubusercontent.com/hashicorp/terraform/main/README.md - Section: Terraform - Section: Getting Started & Documentation - Section: Developing Terraform - **terraform-110-state-locking-and-ephemeral.md** (1 passages, 535 B) - Section: Terraform 1.10+ Native S3 State Locking & Ephemeral Secrets - **official_ref_1_terraform_overview_terraform.md** (3 passages, 4 KB) - Section: Terraform overview | Terraform | HashiCorp Developer - **terraform-refactoring-moved-and-imports.md** (1 passages, 342 B) - Section: Refactoring Terraform Safely with moved, import & check Blocks ## Verified Sample Citations (High Fact Density) - **[terraform-110-state-locking-and-ephemeral.md #0]**: # Terraform 1.10+ Native S3 State Locking & Ephemeral Secrets Terraform 1.10+ introduces native S3 conditional-write state locking via `use_lockfile = true` in the `backend "s3"` block, eliminating the legacy requirement for a separate DynamoDB lock table. `ephemeral` variables, resources (`ephemeral "aws_secretsmanager_secret_version"`), and write-only r... - **[terraform-refactoring-moved-and-imports.md #0]**: # Refactoring Terraform Safely with moved, import & check Blocks Never run manual `terraform state mv` in shared pipelines when refactoring module addresses; commit declarative `moved { from = aws_instance.old to = module.compute.aws_instance.main }` and `import { to = ... id = ... }` blocks so PR plans verify zero destructive replacement. - **[official_ref_2_raw_githubusercontent_com_ha.md #1]**: # Terraform - Website: https://developer.hashicorp.com/terraform - Forums: [HashiCorp Discuss](https://discuss.hashicorp.com/c/terraform-core) - Documentation: [https://developer.hashicorp.com/terraform/docs](https://developer.hashicorp.com/terraform/docs) - Tutorials: [HashiCorp's Learn Platform](https://developer.hashicorp.com/terraform/tutorials) - Cer... - **[official_ref_2_raw_githubusercontent_com_ha.md #3]**: ## Getting Started & Documentation Documentation is available on the [Terraform website](https://developer.hashicorp.com/terraform): - [Introduction](https://developer.hashicorp.com/terraform/intro) - [Documentation](https://developer.hashicorp.com/terraform/docs) If you're new to Terraform and want to get started creating infrastructure, please check out... - **[official_ref_2_raw_githubusercontent_com_ha.md #4]**: ## Developing Terraform This repository contains only Terraform core, which includes the command line interface and the main graph engine. Providers are implemented as plugins, and Terraform can automatically download providers that are published on [the Terraform Registry](https://registry.terraform.io). HashiCorp develops some providers, and others are ... - **[official_ref_2_raw_githubusercontent_com_ha.md #2]**: - **Resource Graph**: Terraform builds a graph of all your resources, and parallelizes the creation and modification of any non-dependent resources. Because of this, Terraform builds infrastructure as efficiently as possible, and operators get insight into dependencies in their infrastructure. - **Change Automation**: Complex changesets can be applied to ...