https://github.com/terraform-ibm-modules/terraform-ibm-toolkit-resource-group
Terraform module to create one or more resource groups in an IBM Cloud account
https://github.com/terraform-ibm-modules/terraform-ibm-toolkit-resource-group
Last synced: about 1 month ago
JSON representation
Terraform module to create one or more resource groups in an IBM Cloud account
- Host: GitHub
- URL: https://github.com/terraform-ibm-modules/terraform-ibm-toolkit-resource-group
- Owner: terraform-ibm-modules
- License: apache-2.0
- Created: 2021-01-20T20:45:08.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-07T20:41:23.000Z (6 months ago)
- Last Synced: 2025-04-12T21:52:17.914Z (about 1 month ago)
- Language: Shell
- Size: 96.7 KB
- Stars: 0
- Watchers: 5
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IBM Cloud Resource Group module
Terraform module to create a resource groups in an IBM Cloud account.
Migrated from https://github.com/cloud-native-toolkit/terraform-ibm-resource-group
**Note:** This module follows the Terraform conventions regarding how provider configuration is defined within the Terraform template and passed into the module - https://www.terraform.io/docs/language/modules/develop/providers.html. The default provider configuration flows through to the module. If different configuration is required for a module, it can be explicitly passed in the `providers` block of the module - https://www.terraform.io/docs/language/modules/develop/providers.html#passing-providers-explicitly.
## Software dependencies
The module depends on the following software components:
### Command-line tools
- terraform - v0.13
### Terraform providers
- IBM Cloud provider >= 1.17.0
## Example usage
[Refer the testcase for more details](test/stages/stage1-resource-groups.tf)
```hcl-terraform
terraform {
required_providers {
ibm = {
source = "ibm-cloud/ibm"
}
}
required_version = ">= 0.13"
}provider "ibm" {
ibmcloud_api_key = var.ibmcloud_api_key
}variable "resource_group_name" {
type = string
description = "The name of the resource group"
}variable "ibmcloud_api_key" {
type = string
description = "IBM Cloud API Key"
}module "resource_group" {
source = "cloud-native-toolkit/resource-group/ibm"resource_group_name = var.resource_group_name
ibmcloud_api_key = var.ibmcloud_api_key
}
```