terraform-provider-stackgen

sg_organizations (Data Source)

Lists all organizations accessible to the current user. Use this to look up organization IDs for sg_project_member or sg_secret resources.

Example Usage

data "sg_organizations" "mine" {}

output "first_org_id" {
  value = try(data.sg_organizations.mine.organizations[0].id, null)
}

Schema

Read-Only

Nested Schema for organizations

Read-Only: