terraform { required_providers { fusionauth = { source = "FusionAuth/fusionauth" version = "0.1.111" } } } provider "fusionauth" { api_key = var.fusionauth_api_key host = var.fusionauth_uri } locals { issuer = var.tenant_issuer != null ? var.tenant_issuer : "${var.fusionauth_uri}/${random_uuid.tenant_id.result}" } resource "fusionauth_key" "oidc" { depends_on = [var.wait_on] algorithm = "RS256" name = "OpenID Connect compliant RSA using SHA-256" length = 2048 } resource "fusionauth_lambda" "rbac" { depends_on = [var.wait_on] name = "RBAC" type = "JWTPopulate" body = <