Inappropriate value for attribute "spec": attribute "teams_to_logins" is required.
benarent opened this issue · 0 comments
benarent commented
Starting with Teleport 12, we'll depreate GitHub connector's teams_to_logins field gravitational/teleport#17951
I tried to change this with the 11.0.1 Terraform Provider but ened out with this message. team_to_roles is support in Teleport 11, but we should update the Terraform provider to support both fields during the transition period.
│ Error: Incorrect attribute value type
│
│ on teleport.tf line 146, in resource "teleport_github_connector" "github":
│ 146: spec = {
│ 147: client_id = var.gh_ae_client_id
│ 148: client_secret = var.gh_ae_client_secret
│ 149: display = "github"
│ 150: redirect_url = "${var.teleport_url}:443/v1/webapi/github/callback"
│ 151: teams_to_roles = [{
│ 152: roles = ["access", "aws-console-access-iam"]
│ 153: team = var.gh_team
│ 154: organization = var.gh_org
│ 155: }]
│ 156: }
│ ├────────────────
│ │ var.gh_ae_client_id has a sensitive value
│ │ var.gh_ae_client_secret has a sensitive value
│ │ var.gh_org is a string, known only after apply
│ │ var.gh_team is a string, known only after apply
│ │ var.teleport_url is a string, known only after apply
│
│ Inappropriate value for attribute "spec": attribute "teams_to_logins" is required.