Skip to content

Commit 1858846

Browse files
Update docs
1 parent 29f9658 commit 1858846

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,15 @@ fastapi dev main.py
4040
```hcl
4141
terraform {
4242
backend "http" {
43-
address = "http://localhost:8000/tfstate"
44-
lock_address = "http://localhost:8000/tfstate/lock"
45-
unlock_address = "http://localhost:8000/tfstate/lock"
43+
address = "http://localhost:8000/tfstate/${PROJECT_ID}"
44+
lock_address = "http://localhost:8000/tfstate/${PROJECT_ID}/lock"
45+
unlock_address = "http://localhost:8000/tfstate/${PROJECT_ID}/lock"
4646
}
4747
}
4848
```
4949

5050
3. Use Terraform as normal. The state will be stored and retrieved from your FastAPI backend.
5151

52-
## API ENDPOINTS
53-
54-
- POST /tfstate: Update Terraform state
55-
- GET /tfstate: Retrieve Terraform state
56-
- LOCK /tfstate/lock: Acquire a state lock
57-
- UNLOCK /tfstate/lock: Release a state lock
58-
- GET /tfstate/lock: Retrieve current lock info
5952

6053
## Note
6154

0 commit comments

Comments
 (0)