mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-02 23:31:08 +08:00
* copy terraform provider * Make dependecy checker happy + use go 1.22 * Run terraform tests in the CI, add Makefile target * go mod tidy
29 lines
538 B
Plaintext
29 lines
538 B
Plaintext
# Terraform Github connector
|
|
|
|
variable "github_secret" {}
|
|
|
|
resource "teleport_github_connector" "github" {
|
|
# This section tells Terraform that role example must be created before the GitHub connector
|
|
depends_on = [
|
|
teleport_role.example
|
|
]
|
|
|
|
metadata = {
|
|
name = "example"
|
|
labels = {
|
|
example = "yes"
|
|
}
|
|
}
|
|
|
|
spec = {
|
|
client_id = "client"
|
|
client_secret = var.github_secret
|
|
|
|
teams_to_roles = [{
|
|
organization = "gravitational"
|
|
team = "devs"
|
|
roles = ["example"]
|
|
}]
|
|
}
|
|
}
|