Giter Site home page Giter Site logo

terraform-ibm-modules / terraform-ibm-toolkit-cloud-monitoring Goto Github PK

View Code? Open in Web Editor NEW
0.0 7.0 0.0 68 KB

Terraform module to provision an IBM Cloud Monitoring instance in an IBM Cloud account

License: Apache License 2.0

HCL 100.00%
terraform ibm-cloud cloud-monitoring ibm sysdig

terraform-ibm-toolkit-cloud-monitoring's Introduction

IBM Cloud Monitoring service terraform module

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.

Software dependencies

The module depends on the following software components:

Command-line tools

  • terraform - v13

Terraform providers

  • IBM Cloud provider >= 1.23.0

Module dependencies

None

Example usage

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
}

terraform-ibm-toolkit-cloud-monitoring's People

Contributors

balasgit avatar seansund avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

terraform-ibm-toolkit-cloud-monitoring's Issues

Using IBM terraform provider >= 1.22 causes crash provisioning resource key

Fails with a panic

module.dev_sysdig.ibm_resource_key.sysdig_instance_key: Creating...

Warning: Value for undeclared variable

The root module does not declare a variable named "key-protect-key-id" but a
value was found in file "terraform.tfvars". To use this value, add a
"variable" block to the configuration.

Using a variables file to set an undeclared variable is deprecated and will
become an error in a future release. If you wish to provide certain "global"
settings to all configurations in your organization, use TF_VAR_...
environment variables to set these instead.


Warning: Value for undeclared variable

The root module does not declare a variable named "cos-instance-region" but a
value was found in file "terraform.tfvars". To use this value, add a
"variable" block to the configuration.

Using a variables file to set an undeclared variable is deprecated and will
become an error in a future release. If you wish to provide certain "global"
settings to all configurations in your organization, use TF_VAR_...
environment variables to set these instead.


Error: rpc error: code = Unavailable desc = transport is closing


panic: Unknown: %!!(MISSING)s(float64=13233)
2021-04-07T17:42:38.078Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: 
2021-04-07T17:42:38.078Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: goroutine 154 [running]:
2021-04-07T17:42:38.078Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: github.com/IBM-Cloud/terraform-provider-ibm/ibm.flatten(0xc000b7d860, 0xc000dceb80, 0x12, 0x24f71a0, 0xc00108f9c8, 0x8e)
2021-04-07T17:42:38.078Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: 	/Users/harinireddy/go/src/github.com/IBM-Cloud/terraform-provider-ibm/ibm/flatten.go:52 +0x465
2021-04-07T17:42:38.078Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: github.com/IBM-Cloud/terraform-provider-ibm/ibm.Flatten(0xc000b7d830, 0x26d)
2021-04-07T17:42:38.078Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: 	/Users/harinireddy/go/src/github.com/IBM-Cloud/terraform-provider-ibm/ibm/flatten.go:24 +0x150
2021-04-07T17:42:38.078Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: github.com/IBM-Cloud/terraform-provider-ibm/ibm.resourceIBMResourceKeyRead(0xc000401b00, 0x2a9d0c0, 0xc000dcc800, 0xc0010d2630, 0xc001085720)
2021-04-07T17:42:38.078Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: 	/Users/harinireddy/go/src/github.com/IBM-Cloud/terraform-provider-ibm/ibm/resource_ibm_resource_key.go:283 +0x2d9
2021-04-07T17:42:38.078Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: github.com/IBM-Cloud/terraform-provider-ibm/ibm.resourceIBMResourceKeyCreate(0xc000401b00, 0x2a9d0c0, 0xc000dcc800, 0x3, 0xffffffffffffffff)
2021-04-07T17:42:38.078Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: 	/Users/harinireddy/go/src/github.com/IBM-Cloud/terraform-provider-ibm/ibm/resource_ibm_resource_key.go:259 +0xde5
2021-04-07T17:42:38.078Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0xc0008b8600, 0x2f42b80, 0xc000ea8380, 0xc000401b00, 0x2a9d0c0, 0xc000dcc800, 0x0, 0x0, 0x0)
2021-04-07T17:42:38.078Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: 	/Users/harinireddy/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:278 +0x88
2021-04-07T17:42:38.078Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc0008b8600, 0x2f42b80, 0xc000ea8380, 0xc00032f8f0, 0xc000ea7de0, 0x2a9d0c0, 0xc000dcc800, 0x0, 0x0, 0x0, ...)
2021-04-07T17:42:38.078Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: 	/Users/harinireddy/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:396 +0x65b
2021-04-07T17:42:38.078Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc0005afb80, 0x2f42b80, 0xc000ea8380, 0xc000f1b220, 0xc000ea8380, 0x0, 0x2f7db20)
2021-04-07T17:42:38.078Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: 	/Users/harinireddy/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:955 +0x8cf
2021-04-07T17:42:38.078Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: github.com/hashicorp/terraform-plugin-go/tfprotov5/server.(*server).ApplyResourceChange(0xc000a924c0, 0x2f42b80, 0xc000ea8380, 0xc00032f7a0, 0xc000a924c0, 0xc000f7a900, 0xc000f77ba0)
2021-04-07T17:42:38.078Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: 	/Users/harinireddy/go/pkg/mod/github.com/hashicorp/[email protected]/tfprotov5/server/server.go:332 +0xae
2021-04-07T17:42:38.079Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler(0x29c3a20, 0xc000a924c0, 0x2f42c40, 0xc000f7a900, 0xc000ffcb40, 0x0, 0x2f42c40, 0xc000f7a900, 0xc00102c000, 0x449)
2021-04-07T17:42:38.079Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: 	/Users/harinireddy/go/pkg/mod/github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:380 +0x214
2021-04-07T17:42:38.079Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: google.golang.org/grpc.(*Server).processUnaryRPC(0xc000aa0000, 0x2f5eca0, 0xc000001500, 0xc0003d5500, 0xc000e68b40, 0x3e295e0, 0x0, 0x0, 0x0)
2021-04-07T17:42:38.079Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: 	/Users/harinireddy/go/pkg/mod/google.golang.org/[email protected]/server.go:1194 +0x522
2021-04-07T17:42:38.079Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: google.golang.org/grpc.(*Server).handleStream(0xc000aa0000, 0x2f5eca0, 0xc000001500, 0xc0003d5500, 0x0)
2021-04-07T17:42:38.079Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: 	/Users/harinireddy/go/pkg/mod/google.golang.org/[email protected]/server.go:1517 +0xd05
2021-04-07T17:42:38.079Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc000046290, 0xc000aa0000, 0x2f5eca0, 0xc000001500, 0xc0003d5500)
2021-04-07T17:42:38.079Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: 	/Users/harinireddy/go/pkg/mod/google.golang.org/[email protected]/server.go:859 +0xa5
2021-04-07T17:42:38.079Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: created by google.golang.org/grpc.(*Server).serveStreams.func1
2021-04-07T17:42:38.079Z [DEBUG] plugin.terraform-provider-ibm_v1.23.0: 	/Users/harinireddy/go/pkg/mod/google.golang.org/[email protected]/server.go:857 +0x1fd
2021-04-07T17:42:38.081Z [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021/04/07 17:42:38 [DEBUG] module.dev_sysdig.ibm_resource_key.sysdig_instance_key: apply errored, but we're indicating that via the Error pointer rather than returning it: rpc error: code = Unavailable desc = transport is closing
2021/04/07 17:42:38 [TRACE] eval: *terraform.EvalMaybeTainted
2021/04/07 17:42:38 [TRACE] EvalMaybeTainted: module.dev_sysdig.ibm_resource_key.sysdig_instance_key encountered an error during creation, so it is now marked as tainted
2021/04/07 17:42:38 [TRACE] eval: *terraform.EvalWriteState
2021/04/07 17:42:38 [TRACE] EvalWriteState: removing state object for module.dev_sysdig.ibm_resource_key.sysdig_instance_key
2021/04/07 17:42:38 [TRACE] eval: *terraform.EvalApplyProvisioners
2021/04/07 17:42:38 [TRACE] EvalApplyProvisioners: ibm_resource_key.sysdig_instance_key has no state, so skipping provisioners
2021/04/07 17:42:38 [TRACE] eval: *terraform.EvalMaybeTainted
2021/04/07 17:42:38 [TRACE] EvalMaybeTainted: module.dev_sysdig.ibm_resource_key.sysdig_instance_key encountered an error during creation, so it is now marked as tainted
2021/04/07 17:42:38 [TRACE] eval: *terraform.EvalWriteState
2021/04/07 17:42:38 [TRACE] EvalWriteState: removing state object for module.dev_sysdig.ibm_resource_key.sysdig_instance_key
2021/04/07 17:42:38 [TRACE] eval: *terraform.EvalIf
2021/04/07 17:42:38 [TRACE] eval: *terraform.EvalIf
2021/04/07 17:42:38 [TRACE] eval: *terraform.EvalWriteDiff
2021/04/07 17:42:38 [TRACE] eval: *terraform.EvalApplyPost
Error: /07 17:42:38 [ERROR] eval: *terraform.EvalApplyPost, err: rpc error: code = Unavailable desc = transport is closing
Error: /07 17:42:38 [ERROR] eval: *terraform.EvalSequence, err: rpc error: code = Unavailable desc = transport is closing
2021/04/07 17:42:38 [TRACE] [walkApply] Exiting eval tree: module.dev_sysdig.ibm_resource_key.sysdig_instance_key
2021/04/07 17:42:38 [TRACE] vertex "module.dev_sysdig.ibm_resource_key.sysdig_instance_key": visit complete
2021/04/07 17:42:38 [TRACE] dag/walk: upstream of "module.dev_sysdig.provider[\"registry.terraform.io/ibm-cloud/ibm\"] (close)" errored, so skipping
2021/04/07 17:42:38 [TRACE] dag/walk: upstream of "module.dev_sysdig (close)" errored, so skipping
2021/04/07 17:42:38 [TRACE] dag/walk: upstream of "meta.count-boundary (EachMode fixup)" errored, so skipping
2021/04/07 17:42:38 [TRACE] dag/walk: upstream of "root" errored, so skipping
2021/04/07 17:42:38 [TRACE] statemgr.Filesystem: no original state snapshot to back up
2021-04-07T17:42:38.081Z [DEBUG] plugin: plugin process exited: path=.terraform/plugins/registry.terraform.io/ibm-cloud/ibm/1.23.0/linux_amd64/terraform-provider-ibm_v1.23.0 pid=262 error="exit status 2"
2021/04/07 17:42:38 [TRACE] statemgr.Filesystem: state has changed since last snapshot, so incrementing serial to 6
2021/04/07 17:42:38 [TRACE] statemgr.Filesystem: writing snapshot at terraform.tfstate
2021/04/07 17:42:38 [TRACE] statemgr.Filesystem: removing lock metadata file .terraform.tfstate.lock.info
2021/04/07 17:42:38 [TRACE] statemgr.Filesystem: unlocking terraform.tfstate using fcntl flock
2021-04-07T17:42:38.084Z [DEBUG] plugin: plugin exited

Seems to be the same problem as this issue - IBM-Cloud/terraform-provider-ibm#2462

Rename ibm-sysdig module to ibm-cloud-monitoring

I'd like to publish this module to the terraform module registry but we should rename it first to match the name in IBM Cloud catalog first

We also need to update the name in the module catalog

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.