Getting a Job Terraform Configuration

Download the Terraform configuration (.zip file) for a job in Resource Manager.

  • Note

    As an alternative to these steps, edit the generated Terraform configuration file in Code Editor. For more information, see Editing Configurations Using Code Editor.
    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 job that you want.
      The Job details page opens.
    4. Click Download Terraform configuration.
  • Use the oci resource-manager job get-job-tf-config command and required parameters to get a job's Terraform configuration file.

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

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

  • Use the GetJobTfConfig operation to get a job's Terraform configuration file.