Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to update tags (OR the lack of tags support) for the azurerm_redis_cache resource #13892

Closed
horsey opened this issue Apr 24, 2017 · 2 comments

Comments

@horsey
Copy link

horsey commented Apr 24, 2017

Terraform Version

v0.9.2

Affected Resource(s)

azurerm_redis_cache

Terraform Configuration Files

resource "azurerm_redis_cache" "redis" {
    name                = "redis1"
    location            = "East US"
    resource_group_name = "${azurerm_resource_group.production.name}"
    capacity            = 1
    family              = "C"
    sku_name            = "Standard"
    enable_non_ssl_port = false

    redis_configuration {
        maxclients = "1000"
    }

    tags {
        role = "redis"
        environment = "production"
    }
}

Debug Output

https://gist.github.com/horsey/355b4caa85cb10b3135d828fc554c63b

Panic Output

None

Expected Behavior

The tags updated inside the .tf file should reflect on the resource.

Actual Behavior

Terraform converges successfully saying that the tags were updated, but one can't see the tags on the portal.

Steps to Reproduce

  1. Create a azurerm_redis_cache resource with empty tags.
  2. Converge the resource successfully.
  3. Update tags as shown in the snippet above.
  4. terraform apply

Important Factoids

When the azurerm_redis_cache resource was converged for the first time, the resource did not have any tag field absolutely. It was not checked if the tags were added to the resource for the first time.

References

None.

@tombuildsstuff
Copy link
Contributor

Hi @horsey

Thanks for reporting this issue.

I've spent some time looking into this - and from what I can see this looks like a bug in the Redis API (we're posting the updated Tags to the API, but it looks like it's not being set, even after a ~15m delay to allow for an eventual consistency issue).

In order to get this fixed, I've opened an issue about the Redis API. Unfortunately, given this is an API issue, there's not a great deal we can do to work around this in the interim - sorry :(

Once that's fixed, we'll also going to add a test to cover this use-case - apologies for the inconvenience here :(

Thanks!

@ghost
Copy link

ghost commented Apr 9, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants