This product is deprecated
Resource group module will not be available after 08/24/2025. You can install the product until then.
Module overview
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.
Usage
Create new Resource group:
module "resource_group" {
# Replace "X.X.X" with a release version to lock into a specific release
source = "https://cm.globalcatalog.cloud.ibm.com/api/v1-beta/offering/source?archive=tgz&kind=terraform&name=terraform-ibm-resource-group&version=X.X.X"
resource_group_name = "new-resource-group"
}
Return ID of an existing Resource group:
module "resource_group" {
# Replace "X.X.X" with a release version to lock into a specific release
source = "https://cm.globalcatalog.cloud.ibm.com/api/v1-beta/offering/source?archive=tgz&kind=terraform&name=terraform-ibm-resource-group&version=X.X.X"
existing_resource_group_name = "existing-resource-group"
}
Features and capabilities
Create an IBM Cloud resource group
Create an IBM Cloud resource group and return the ID.
Return the ID of an IBM Cloud resource group
Pass in the name of an IBM Cloud resource group. The module returns the ID of the group.
Version last updated: 11/17/2023
Example
Details
Details
Type
- Terraform
Provider
- Community
Category
- Developer tools
Last updated
- 05/26/2025
Product version
- v1.1.4
Example
- Existing resource group
Copy
Copy
Copy
Copy
Copy
Copy
Count: 0