hcl

Edit Terraform configuration files programmatically with Python

Edit Terraform configuration files programmatically with Python Question: I am trying to edit Terraform configuration files with Python. I am parsing Terraform files (.tf) using python hcl2 library which returns a python dictionary. I want to add new key/value pairs or change some values in the dictionary. Directly writing to the file is not a …

Total answers: 2