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

On the azapi_resource, add an ignore_errors attribute that would allow errors to be suppressed

Open kansberry-kr opened this issue 1 year ago • 1 comments

I want to use this Terraform provider to determine if a resource exists and then take action in my Terraform code based on this test. If the resource does not exists and I set the "ignore_errors" attribute to true, simple return a null so that when I reference "jsondecode(data.azapi_resource.example.output).properties", I can wrap this in the "try" HCL function and know what to do.

kansberry-kr avatar Mar 02 '23 21:03 kansberry-kr