Azure / Azure/terraform-provider-azapi

Feature request: Provider level `ignore_tags` option like aws provider

Open
#882 1 comment 2 reactions 1 assignee Claimed by @stevenjma View on GitHub
enhancement triaged
Dominant language
Go
Stars
244
Forks
97
Avg merge
5d 9h
Merged PRs (30d)
9

Description

## Ask

Please add an option to ignore certain tags for all resources managed by the `azapi` provider.

Example scenario: I like to run automation that sets tag `createdDate` based on information from the Azure RM API. This will cause drift on future Terraform plan and apply. I don't want this tag to be set manually in code, as it can be wrong. Code could be old, resource could have been deleted then recreated.

Our current option is to use Terraform `ignore_changes`, but that must be set on every resource defined in Terraform.

## Context

Terraform has `lifecycle { ignore_changes = []}`, but it must be set for each tag (no regex, prefix) and each resource.

*

The `aws` provider has a global setting `ignore_tags` that also supports prefix / starts with:

*

```hcl
provider "aws" {
ignore_tags {
keys = ["TagKey1"]
}
}
```

The `azurerm` provider does not have such a feature, though it has been requested:

* Provider `azurerm` feature request:

Terraform itself could make this easier to, independent of resource provider. Some related feature requests:

* Terraform feature request to support wildcard in `ignore_changes`:
* Terraform feature request to add a global `lifecycle {}`:

The ARM API supports multiple patch operations. Maybe `merge` could be used here, then ignore tags not defined by Terraform?

*

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.