SumoLogic / terraform-provider-sumologic

Terraform provider for Sumo Logic
https://www.terraform.io/docs/providers/sumologic/
Mozilla Public License 2.0
38 stars 55 forks source link

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

Open wayne-kirk-schmidt opened 1 year ago

wayne-kirk-schmidt commented 1 year ago

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" { │ ╵

dlinsumo commented 1 year ago

Sumo internal SUMO-208787

wayne-kirk-schmidt commented 1 year ago

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

wayne-kirk-schmidt commented 11 months ago

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