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

Support for Redis User #24692

Closed
1 task done
squeakymouse opened this issue Jan 30, 2024 · 3 comments · Fixed by #25477
Closed
1 task done

Support for Redis User #24692

squeakymouse opened this issue Jan 30, 2024 · 3 comments · Fixed by #25477

Comments

@squeakymouse
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Description

On the (PREVIEW) Data Access Configuration tab of Azure Cache for Redis, there is the ability to add Redis users and assign them different access policies, e.g. Data Owner. Can this feature be added to Terraform?

New or Affected Resource(s)/Data Source(s)

azurerm_redis_cache

Potential Terraform Configuration

No response

References

No response

@MichalSino
Copy link

MichalSino commented Mar 4, 2024

Any new information about this?

For now I found workaround using AzApi provider:

resource "azapi_resource" "add-user" {
  type = "Microsoft.Cache/redis/accessPolicyAssignments@2023-08-01"
  name = "TestAPAssign"
  parent_id = azurerm_redis_cache.redis_cache.id
  body = jsonencode({
    properties = {
      accessPolicyName = "Data Owner"
      objectId         = ""
      objectIdAlias    = ""
    }
  })
}

@rcskosir / @mybayern1974 But It shows that could be resource something like that:

azurerm_redis_cache_accesspolicyassignment "apassign" {
   name = "TestAPAssign"
   redis_id =......
   role = "Data Owner"/"Data Contrubutor"/"Data Reader"
   principal_id = user_object_id
   principal_name = user_name
}

And another resource:

azurerm_redis_cache_accesspolicy {
   name = "TestAPAssign"
   redis_id =......
   permissions = "......"
}

@favoretti
Copy link
Collaborator

#25477 should fix this once I'm done with it

Copy link

github-actions bot commented May 5, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
5 participants