Creating a Plan Job
Create a plan job in Resource Manager.
Creating (running) a plan job parses your Terraform configuration and converts it into an execution plan for the associated stack. The execution plan lists the sequence of specific actions planned to provision your Oracle Cloud Infrastructure resources, including actions that are expected after running an apply job. We recommend running a plan job (generating an execution plan) before running an apply job. The execution plan is handed off to the apply job, which then executes the instructions.
For configurations stored in a source code control system, such as GitHub or GitLab, the job uses the most recent commit.
The plan job is created. The new job is listed under Jobs.
Use the
oci resource-manager job create-plan-job
command and required parameters to run a plan job.oci resource-manager job create-plan-job [OPTIONS]
For a complete list of parameters and values for CLI commands, see the Command Line Reference for Resource Manager.
Use the CreateJob operation to create a plan job.
For an example of the
operation
part of the request, see CreatePlanJobOperationDetails.
What's Next
Monitor the job status (lifecycle state) by getting the job's details. Succeeded (SUCCEEDED
) indicates that the job has completed. Depending on the complexity of the job, the operation can take some time. While the job runs, or after it finishes, you can get the job logs content.