You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This module returns the ID for the name of a resource group. It can also create a group from a name and return the ID.
9
+
This module returns the ID for the name of a resource group. It can also create a group from a name and return the ID. The module will return the ID of the default resource group if no name is passed.
10
10
11
11
<!-- Below content is automatically populated via pre-commit hook -->
|[ibm_resource_group.default](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/data-sources/resource_group)| data source |
66
75
|[ibm_resource_group.existing_resource_group](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/data-sources/resource_group)| data source |
67
76
68
77
### Inputs
69
78
70
79
| Name | Description | Type | Default | Required |
| <aname="input_existing_resource_group_name"></a> [existing\_resource\_group\_name](#input\_existing\_resource\_group\_name)| Name of the existing resource group. Required if not creating new resource group |`string`|`null`| no |
81
+
| <aname="input_existing_resource_group_name"></a> [existing\_resource\_group\_name](#input\_existing\_resource\_group\_name)| Name of the existing resource group. When null, set to the account's default resource group.|`string`|`null`| no |
73
82
| <aname="input_resource_group_name"></a> [resource\_group\_name](#input\_resource\_group\_name)| Name of the resource group to create. Required if not using existing resource group |`string`|`null`| no |
An example showing how when no resource group or existing resource group is passed, the module can look up and return the default Resource group ID as an output.
0 commit comments