Manages policy mappings for Github Teams authenticated via Github. See the Vault documentation for more information.
resource "vault_github_auth_backend" "example" {
organization = "myorg"
}
resource "vault_github_team" "tf_devs" {
backend = vault_github_auth_backend.example.id
team = "terraform-developers"
policies = ["developer", "read-only"]
}
The following arguments are supported:
namespace
- (Optional) The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespace
is always relative to the provider's configured namespace.
Available only for Vault Enterprise.
backend
- (Required) Path where the github auth backend is mounted. Defaults to github
if not specified.
team
- (Required) GitHub team name in "slugified" format, for example: Terraform
Developers -> terraform-developers
.
policies
- (Optional) An array of strings specifying the policies to be set on tokens
issued using this role.
No additional attributes are exported by this resource.
Github team mappings can be imported using the path
, e.g.
$ terraform import vault_github_team.tf_devs auth/github/map/teams/terraform-developers