Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 652 Bytes

README.md

File metadata and controls

28 lines (24 loc) · 652 Bytes

terraform-stateserver-py

setup document maintained in 20210316-terraform-stateserver-python.docx

terraform config

➜  terraform-poc cat main.tf 
terraform {
  backend "http" {
    address = "http://192.168.1.235:5000/terraform_state/4cdd0c76-d78b-11e9-9bea-db9cd8374f3a"
    lock_address = "http://192.168.1.235:5000/terraform_lock/4cdd0c76-d78b-11e9-9bea-db9cd8374f3a"
    lock_method = "PUT"
    unlock_address = "http://192.168.1.235:5000/terraform_lock/4cdd0c76-d78b-11e9-9bea-db9cd8374f3a"
    unlock_method = "DELETE"
  }
}

run script

$ more run.sh 
#!/bin/bash
source venv/bin/activate
python3 server.py