File tree 1 file changed +3
-10
lines changed 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -40,22 +40,15 @@ fastapi dev main.py
40
40
``` hcl
41
41
terraform {
42
42
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"
46
46
}
47
47
}
48
48
```
49
49
50
50
3 . Use Terraform as normal. The state will be stored and retrieved from your FastAPI backend.
51
51
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
59
52
60
53
## Note
61
54
You can’t perform that action at this time.
0 commit comments