Skip to content

Commit 3390692

Browse files
committed
Exempted - Update for resource discovery documentation
1 parent 839e05e commit 3390692

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

website/docs/guides/resource_discovery.html.markdown

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ terraform-provider-oci -command=export -compartment_id=<OCID of compartment to e
102102
This command will discover resources within your compartment and generates Terraform configuration files in the given `output_path`.
103103
The generated `.tf` files contain the Terraform configuration with the resources that the command has discovered.
104104

105+
> **Note:**
106+
Make sure the `output_path` is empty before running resource discovery
107+
105108
**Parameter Description**
106109

107110
* `command` - Command to run. Supported commands include:
@@ -110,10 +113,13 @@ The generated `.tf` files contain the Terraform configuration with the resources
110113
* `list_export_services` - Lists the allowed values for services arguments along with scope in json format
111114
* `compartment_id` - OCID of a compartment to export. If `compartment_id` or `compartment_name` is not specified, the root compartment will be used
112115
* `compartment_name` - The name of a compartment to export. Use this instead of `compartment_id` to provide a compartment name
116+
* `exclude_services` - Comma-separated list of service resources to exclude from export. If a service is present in both 'services' and 'exclude_services' argument, it will be excluded
113117
* `generate_state` - Provide this flag to import the discovered resources into a state file along with the Terraform configuration
114-
* `ids` - Comma-separated list of resource IDs to export. The ID could either be an OCID or a Terraform import ID. By default, all resources are exported
118+
* `ids` - Comma-separated list of tuples <resource Type:resource ID> e.g. `oci_core_instance:ocid.....`for resources to export. The ID could either be an OCID or a Terraform import ID. By default, all resources are exported
115119
* `list_export_services_path` - Path to output list of supported services in json format, must include json file name
116120
* `output_path` - Absolute path to output generated configurations and state files of the exported compartment
121+
* `parallelism` - The number of threads to use for resource discovery. By default the value is 1
122+
* `retry_timeout` - The time duration for which API calls will wait and retry operation in case of API errors. By default, the retry timeout duration is 15s
117123
* `services` - Comma-separated list of service resources to export. If not specified, all resources within the given compartment (which excludes identity resources) are exported. The following values can be specified:
118124
* `adm` - Discovers adm resources within the specified compartment
119125
* `ai_anomaly_detection` - Discovers ai_anomaly_detection resources within the specified compartment

0 commit comments

Comments
 (0)