Module to provision an instance of IBM Cloud Monitoring in a resource group in an IBM Cloud account.
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.
The module depends on the following software components:
- terraform - v13
- IBM Cloud provider >= 1.23.0
None
Refer Test case for more details
terraform {
required_providers {
ibm = {
source = "ibm-cloud/ibm"
}
}
required_version = ">= 0.13"
}
provider "ibm" {
ibmcloud_api_key = var.ibmcloud_api_key
region = var.region
}
module "cloud-monitoring" {
source = "cloud-native-toolkit/cloud-monitoring/ibm"
resource_group_name = module.resource_group.name
region = var.region
provision = true
name_prefix = var.name_prefix
}