I'm attempting to use a data resource to get the b...
# discuss-terraform
b
I'm attempting to use a data resource to get the built-in role template
cluster-member
ie.
Copy code
data "rancher2_role_template" "cluster_member" {
  name    = "cluster-member"
  context = "cluster"
and even though I very much see in the UI this role named
cluster-member
Copy code
apiVersion: <http://management.cattle.io/v3|management.cattle.io/v3>
builtin: true
context: cluster
description: ''
displayName: Cluster Member
external: false
hidden: false
kind: RoleTemplate
metadata:
  annotations:
    <http://cleanup.cattle.io/rtUpgradeCluster|cleanup.cattle.io/rtUpgradeCluster>: 'true'
    <http://lifecycle.cattle.io/create.mgmt-auth-roletemplate-lifecycle|lifecycle.cattle.io/create.mgmt-auth-roletemplate-lifecycle>: 'true'
  <<SNIP>>
  name: cluster-member
terraform is reporting
Error: [ERROR] role template with name "cluster-member" not found
has anyone else seen this or have any tips on how I can correctly look up this role in terraform? Thread in Slack Conversation
My first thought is a permissions issue, does the authentication information you are using with the provider match what you are using in the UI?
After that I would check all of the general stuff, like does your provider version match the correct Rancher version. Are you using Terraform v1.5+? Is the version of Rancher you are using supported?