terraform-provider-sumologic icon indicating copy to clipboard operation
terraform-provider-sumologic copied to clipboard

Errors with API key permissions not presented back to the terraform provider

Open wayne-kirk-schmidt opened this issue 2 years ago • 3 comments

Organization ID - 0000000000004608 Plan Type - SUMO Logic Continuous Intelligence Service - CF Credit - Free

Issue: I have created terraform files that build scalable lookup files ( with a python script to populate lookup files ).

The terraform files work well when the organization has the right permissions ( free does not have access to scalable lookup files )

The issue is the provider captures the error from the API service, but does not pass the error up through Terraform.

Thus, after using terraform apply, I find I see the errors in the terraform output, but the terraform exit status is 0 which is incorrect.

Details: ╷ │ Error: {"id":"FAVC1-PVDQK-4V735","errors":[{"code":"lookup:invalid_request","message":"Invalid lookup table request.","detail":"Scalable Lookups is not available in your account type."}]} │ │ with sumologic_lookup_table.rf-url-table, │ on rfsyncprep.lookups.url.tf line 1, in resource "sumologic_lookup_table" "rf-url-table": │ 1: resource "sumologic_lookup_table" "rf-url-table" { │ ╵ ╷ │ Error: {"id":"VEFLW-BVM9D-PQT1S","errors":[{"code":"lookup:invalid_request","message":"Invalid lookup table request.","detail":"Scalable Lookups is not available in your account type."}]} │ │ with sumologic_lookup_table.rf-vulnerability-table, │ on rfsyncprep.lookups.vulnerability.tf line 1, in resource "sumologic_lookup_table" "rf-vulnerability-table": │ 1: resource "sumologic_lookup_table" "rf-vulnerability-table" { │ ╵

wayne-kirk-schmidt avatar Dec 27 '22 15:12 wayne-kirk-schmidt

Sumo internal SUMO-208787

dlinsumo avatar Dec 27 '22 19:12 dlinsumo

Howdy! I wanted to see if we fixed this issue. Had we had the chance do to so?

wayne-kirk-schmidt avatar Sep 17 '23 13:09 wayne-kirk-schmidt

Dakun, have we had the chance to fix this? If so, happy to test this.

wayne-kirk-schmidt avatar Oct 16 '23 23:10 wayne-kirk-schmidt