terraform-provider-grafana icon indicating copy to clipboard operation
terraform-provider-grafana copied to clipboard

[Feature Request]: Add conditions support to grafana_cloud_access_policy_token

Open daniel-andresen-jimdo opened this issue 5 months ago • 0 comments

Feature Request

Hey,

Cloud access policies have the possibility to limit this CAP to be used by specific ip ranges. This is supported by setting conditions in the API. https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#access-policies-and-tokens

{ "name": "stack-readers", "displayName": "Stack Readers", "scopes": ["metrics:read", "logs:read", "traces:read", "alerts:read"], "realms": [ { "type": "stack", "identifier": "123", "labelPolicies": [ { "selector": "{env != "dev"}" } ] } ], "conditions": { "allowedSubnets": ["192.168.0.0/24", "10.1.2.99/32"] } }

I would be awesome if you could add conditions support for the resource grafana_cloud_access_policy_token the Terraform provider.

daniel-andresen-jimdo avatar Sep 05 '24 14:09 daniel-andresen-jimdo