Skip to content

Latest commit

 

History

History

cloud_monitoring

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

IBM Cloud Monitoring module

This module supports configuring an IBM Cloud Monitoring instance.

Usage

# Locals
locals {
  region      = "us-south"
}

# Required providers
terraform {
  required_version = ">= 1.0.0"
  required_providers {
    ibm = {
      source  = "ibm-cloud/ibm"
      version = "X.Y.Z" # lock into a supported provider version
    }
  }
}
provider "ibm" {
  ibmcloud_api_key = XXXXXXXXXXXX
  region           = local.region
}

module "cloud_monitoring" {
  source            = "terraform-ibm-modules/observability-instances/ibm//modules/cloud_monitoring"
  version           = "X.Y.Z" # Replace "X.Y.Z" with a release version to lock into a specific release
  resource_group_id = "xxXXxxXXxXxXXXXxxXxxxXXXXxXXXXX"
  region            = local.region
}

Required IAM access policies

You need the following permissions to run this module.

  • Service

    • Resource group only
      • Viewer access on the specific resource group
    • Cloud Monitoring
      • Editor platform access
      • Manager service access
    • Tagging service (Required if attaching access tags to the Monitoring instance)
      • Editor platform access

Requirements

Name Version
terraform >= 1.0.0
ibm >= 1.70.0, < 2.0.0

Modules

No modules.

Resources

Name Type
ibm_resource_instance.cloud_monitoring resource
ibm_resource_key.resource_key resource
ibm_resource_tag.cloud_monitoring_tag resource

Inputs

Name Description Type Default Required
access_tags Access Management Tags associated with the IBM Cloud Monitoring instance (Optional, array of strings). list(string) [] no
enable_platform_metrics Receive platform metrics in the provisioned IBM Cloud Monitoring instance. bool true no
instance_name The name of the IBM Cloud Monitoring instance to create. Defaults to 'cloud-monitoring-' string null no
manager_key_name The name to give the IBM Cloud Monitoring manager key. string "SysdigManagerKey" no
manager_key_tags Tags associated with the IBM Cloud Monitoring manager key. list(string) [] no
plan The IBM Cloud Monitoring plan to provision. Available: lite, graduated-tier string "lite" no
region The IBM Cloud region where instances will be created. string "us-south" no
resource_group_id The id of the IBM Cloud resource group where the instance(s) will be created. string n/a yes
service_endpoints The type of the service endpoint that will be set for the Sisdig instance. string "public-and-private" no
tags Tags associated with the IBM Cloud Monitoring instance (Optional, array of strings). list(string) [] no

Outputs

Name Description
access_key The cloud monitoring access key for agents to use
crn The id of the provisioned cloud monitoring instance.
guid The guid of the provisioned cloud monitoring instance.
manager_key_name The cloud monitoring manager key name
name The name of the provisioned cloud monitoring instance.
resource_group_id The resource group where cloud monitoring monitor instance resides