Skip to content

Commit

Permalink
Add a deprecation message for grafana_builtin_role_assignment (#497)
Browse files Browse the repository at this point in the history
* Add a deprecation message for grafana_builtin_role_assignment

* Compile docs

* Add a link to the grafana_role resource
  • Loading branch information
vtorosyan authored May 23, 2022
1 parent 5ceddbd commit b3eecd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/resources/builtin_role_assignment.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
page_title: "grafana_builtin_role_assignment Resource - terraform-provider-grafana"
subcategory: ""
description: |-
Note: This resource is going to be deprecated with Grafana 9.+, please use grafana_role https://registry.terraform.io/providers/grafana/grafana/latest/docs/resources/role instead.
Note: This resource is available only with Grafana Enterprise 8.+.
Official documentation https://grafana.com/docs/grafana/latest/enterprise/access-control/HTTP API https://grafana.com/docs/grafana/latest/http_api/access_control/
---

# grafana_builtin_role_assignment (Resource)

**Note:** This resource is going to be deprecated with Grafana 9.+, please use [grafana_role](https://registry.terraform.io/providers/grafana/grafana/latest/docs/resources/role) instead.
**Note:** This resource is available only with Grafana Enterprise 8.+.

* [Official documentation](https://grafana.com/docs/grafana/latest/enterprise/access-control/)
Expand Down
2 changes: 2 additions & 0 deletions grafana/resource_builtin_role_assignment.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
func ResourceBuiltInRoleAssignment() *schema.Resource {
return &schema.Resource{
Description: `
**Note:** This resource is going to be deprecated with Grafana 9.+, please use [grafana_role](https://registry.terraform.io/providers/grafana/grafana/latest/docs/resources/role) instead.
**Note:** This resource is available only with Grafana Enterprise 8.+.
* [Official documentation](https://grafana.com/docs/grafana/latest/enterprise/access-control/)
Expand All @@ -27,6 +28,7 @@ func ResourceBuiltInRoleAssignment() *schema.Resource {
Importer: &schema.ResourceImporter{
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: "This resource is going to be deprecated with Grafana 9.+, please use [grafana_role](https://registry.terraform.io/providers/grafana/grafana/latest/docs/resources/role) instead",
Schema: map[string]*schema.Schema{
// Built-in roles are all organization roles and Grafana Admin
"builtin_role": {
Expand Down

0 comments on commit b3eecd9

Please sign in to comment.