src/noos_tf/cli.py
def run(ctx, message="", workspace="", organisation=None, token=None):
    """Run a plan in Terraform cloud."""
    organisation = organisation or os.getenv("TERRAFORM_USER")
    token = token or os.getenv("TERRAFORM_TOKEN")
    assert organisation is not None, "Missing Terraform Cloud organisation."
    assert token is not None, "Missing Terraform Cloud token."
    url = api.run_workspace_plan(organisation, workspace, token, message)
    print(f"Running Terraform plan for {workspace}: {url}")
Run a plan in Terraform cloud.
Run a plan in Terraform cloud.
Run a plan in Terraform cloud .
def run(ctx, message="", workspace="", organisation=None, token=None):
    organisation = organisation or os.getenv("TERRAFORM_USER")
    token = token or os.getenv("TERRAFORM_TOKEN")
    assert organisation is not None, "Missing Terraform Cloud organisation."
    assert token is not None, "Missing Terraform Cloud token."
    url = api.run_workspace_plan(organisation, workspace, token, message)
    print(f"Running Terraform plan for {workspace}: {url}")
def run ( ctx , message = "" , workspace = "" , organisation = None , token = None ) : organisation = organisation or os . getenv ( "TERRAFORM_USER" ) token = token or os . getenv ( "TERRAFORM_TOKEN" ) assert organisation is not None , "Missing Terraform Cloud organisation." assert token is not None , "Missing Terraform Cloud token." url = api . run_workspace_plan ( organisation , workspace , token , message ) print ( f"Running Terraform plan for {workspace}: {url}" )
Run a plan in Terraform cloud.
Run a plan in Terraform cloud .
"""Run a plan in Terraform cloud."""
ctx
message
workspace
organisation
token