Getting the Terraform Output for a Plan Job

Download the output of a plan job in Resource Manager.

    1. Open the navigation menu and click Developer Services. Under Resource Manager, click Jobs.
      You can also access jobs from a stack detail page. Click Stacks and then click the name of the stack you want.
    2. Choose a compartment that you have permission to work in (on the left side of the page).
    3. Click the name of the plan job that you want.
      The Job details page opens.
    4. Click Download Terraform plan and then select the file format option you want (binary or .json file).
  • Use the oci resource-manager job get-job-tf-plan command and required parameters to get the output of a plan job.

    oci resource-manager stack get-job-tf-plan [OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the Command Line Reference for Resource Manager.

    Example Request

    Example to get the output of a plan job in JSON format:

    oci resource-manager job get-job-tf-plan --job-id ocid1.ormjob.oc1.phx.<uniqueid> --file tfplan.json --tf-plan-format JSON
  • Use the GetJobTfPlan operation to get the output of a plan job.