Azure / Azure/terraform-provider-azapi

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

Open
#265 2 comments 0 reactions 0 assignees View on GitHub
enhancement triaged
Dominant language
Go
Stars
244
Forks
97
Avg merge
3d 18h
Merged PRs (30d)
8

Description

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.

Contributor guide

Open the contributing guide

Research direction

Start by locating the azapi_resource implementation and its read behavior in the Terraform provider, then trace how a missing Azure resource is reported. Verify the requested behavior with a configuration using the ignore_errors attribute, jsondecode, and try; done means a missing resource can be handled without an error when the attribute is true.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, go, terraform
Domain
api, cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.