Kong / terraform-provider-konnect

16 stars 3 forks source link

support type map for labels in konnect_gateway_control_plane #3

Closed liyangau closed 2 months ago

liyangau commented 2 months ago

Hi,

I'd like to report an issue about inconsistency in using labels.

For konnect_gateway_control_plane, I am getting Inappropriate value for attribute "labels": string required. if I use below.

  labels = {
      env         = "test"
      provisioner = "terraform"
  }

I need to use

  labels = jsonencode({
      env         = "test"
      provisioner = "terraform"
  })

For konnect_mesh_control_plane , it is the opposite. map works

  labels = {
      env         = "test"
      provisioner = "terraform"
  }