dlab_deployment.infrastructure.terraform¶
Module Contents¶
-
validate_tf_result(check_phrase, error_msg)[source]¶ Parameters: - check_phrase (str) – String that should be included to output
- error_msg (str) – Error message string
Returns: fn execution
:raise TerraformException if check phrase not in execution result
-
class
Terraform(command_executor, **kwargs)[source]¶ Bases:
object-
initialize(self)[source]¶ Initialize terraform :raise TerraformException: if initialization was not succeed
-
validate(self)[source]¶ Validate terraform
Raises: TerraformException – if validation status was not succeed
-