Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Shr3ps opened this issue Nov 8, 2023 · 0 comments

Comments

@Shr3ps
Copy link

Shr3ps commented Nov 8, 2023

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant