Skip to content

Latest commit

 

History

History
63 lines (49 loc) · 1.65 KB

File metadata and controls

63 lines (49 loc) · 1.65 KB
page_title forgejo_organization Resource - forgejo
subcategory
description Forgejo organization resource.

forgejo_organization (Resource)

Forgejo organization resource.

Example Usage

terraform {
  required_providers {
    forgejo = {
      source = "svalabs/forgejo"
    }
  }
}

provider "forgejo" {
  host = "http://localhost:3000"
}

# Organization with default settings
resource "forgejo_organization" "defaults" {
  name = "test_org_defaults"
}

# Organization with custom settings
resource "forgejo_organization" "non_defaults" {
  name        = "test_org_non_defaults"
  full_name   = "Terraform Test Org with non-default attributes"
  description = "Purely for testing..."
  website     = "https://forgejo.org/"
  location    = "Mêlée Island"
  visibility  = "private"
}

Schema

Required

  • name (String) Name of the organization. Changing this forces a new resource to be created.

Optional

  • description (String) Description of the organization.
  • full_name (String) Full name of the organization.
  • location (String) Location of the organization.
  • repo_admin_change_team_access (Boolean) Whether repository admin can add and remove access for teams. Changing this forces a new resource to be created.
  • visibility (String) Visibility of the organization. Possible values are 'public' (default), 'limited', or 'private'.
  • website (String) Website of the organization.

Read-Only

  • avatar_url (String) Avatar URL of the organization.
  • id (Number) Numeric identifier of the organization.