MCPcopy Create free account
hub / github.com/beelit94/python-terraform / create

Method create

python_terraform/terraform.py:467–477  ·  view source on GitHub ↗
(self, variables: Dict[str, str])

Source from the content-addressed store, hash-verified

465 self.files = []
466
467 def create(self, variables: Dict[str, str]) -> str:
468 with tempfile.NamedTemporaryFile(
469 "w+t", suffix=".tfvars.json", delete=False
470 ) as temp:
471 logger.debug("%s is created", temp.name)
472 self.files.append(temp)
473 logger.debug("variables wrote to tempfile: %s", variables)
474 temp.write(json.dumps(variables))
475 file_name = temp.name
476
477 return file_name
478
479 def clean_up(self):
480 for f in self.files:

Callers 1

generate_cmd_stringMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected