terraform-provider-stackgen

sg_credential_provider (Data Source)

Looks up a 3-legged OAuth Credential Provider by name across the tenant and organization boundaries. This is useful in a layered GitOps deployment where the tenant boundary creates the global app registration (the sg_credential_provider resource), and the organization boundary looks it up via this data source to wire into sg_guild_integration.

Example Usage

data "sg_credential_provider" "github_org" {
  name = "github-org-app"
}

output "credential_provider_id" {
  value = data.sg_credential_provider.github_org.id
}

Operational notes

Returned OAuth configuration can be sensitive. Secure Terraform state and plans.

Schema

Required

Read-Only