DeploymentResult¶
Represents the result of an apply or destroy operation.
DeploymentResult provides methods to fetch the output of the deployment operation.
Example¶
from infraweave import Deployment, S3Bucket
bucket_module = S3Bucket(version='0.0.11-dev', track="dev")
bucket1 = Deployment(name="bucket1", namespace="playground", module=bucket_module, region="us-west-2")
bucket1.set_variables(bucket_name="my-bucket12347ydfs3", enable_acl=False)
result = bucket1.apply()
print(f"Job ID: {result.job_id}")
print(f"Apply output: {result.get_output()}")
Properties¶
deployment_id¶
environment_id¶
job_id¶
region¶
Methods¶
__new__(args, kwargs)¶
Create and return a new object. See help(type) for accurate signature.
get_output()¶
Gets the output from the apply or destroy operation.
Returns the full text output from the Terraform command that was executed.
Returns¶
str: The command output text.