Skip to content

terraform provider for generating principals and principalset for workload identity federation

License

Notifications You must be signed in to change notification settings

reMarkable/terraform-provider-wif-data

Repository files navigation

Terraform provider for workload identity federation

This is a WIP Terraform provider for generating Workload Identity Federation principals.

This will attempt some minimal validation of source_expression being a valid CEL expression using go-cel

It can be used like this:

provider "wif" {
  project_id = 1976
  pool_id = "mypool"
}
data "wif_principal_set" "actions" {
  target = "repo"
  source_expression = "assertion.arn.contains(\":instance-profile/Production\")"
}
data "wif_principal_set" "mygroup" {
  target = "attribute.group"
  source_expression = "mygroup"
}

data "wif_principal" "actions" {
  subject = "repo:reMarkable/actions"
}

Note that this provider has not yet been uploaded to a registry.

About

terraform provider for generating principals and principalset for workload identity federation

Resources

License

Stars

Watchers

Forks

Packages

No packages published