Getting a Stack Terraform Configuration
Download the Terraform configuration used by a stack in Resource Manager. The Terraform configuration file for a stack is the one associated with the most recent successful job.
For stacks created from Terraform configurations in Git, configuration files are not available for download until a job is successfully run on the stack.
Alternatively, you can view the generated Terraform configuration file in Code Editor. For more information, see Editing Configurations Using Code Editor.
Use the
oci resource-manager stack get-stack-tf-config
command and required parameters to get a stack's Terraform configuration file.oci resource-manager stack get-stack-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 GetStackTfConfig operation to get a stack's Terraform configuration file.