Skip to content

signalfx_azure_integration resource cannot have services value with an empty list #456

@Shr3ps

Description

@Shr3ps

Hello,

Since the v8.0.0 of the provider, which removes the data source signalfx_azure_services (to list available services for integration), I'm trying to pass empty list to enable integration on every services like it's documented here: https://registry.terraform.io/providers/splunk-terraform/signalfx/latest/docs/resources/azure_integration#services

or the provider CHANGELOG (https://github.com/splunk-terraform/terraform-provider-signalfx/blob/main/CHANGELOG.md#800) which says:

Users may use empty list to specify "all services" instead

My sample code:

resource "signalfx_azure_integration" "azure_integration" {
  name        = local.integration_name
  enabled     = var.enabled
  environment = "azure"

  services = []
...
}

The provider produce this error at plan:

╷
│ Error: Not enough list items
│
│   with module.signalfx_integrations_cloud_azure.module.sfx_integration.signalfx_azure_integration.azure_integration,
│   on .terraform/modules/signalfx_integrations_cloud_azure/cloud/azure/sfx/integrations-azure.tf line 12, in resource "signalfx_azure_integration" "azure_integration":12:   services = []
│
│ Attribute services requires 1 item minimum, but config has only 0 declared.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions