Skip to content

Latest commit

 

History

History
66 lines (52 loc) · 1.52 KB

organization.md

File metadata and controls

66 lines (52 loc) · 1.52 KB
page_title subcategory description
forgejo_organization Resource - forgejo
Forgejo organization resource

forgejo_organization (Resource)

Forgejo organization resource

Example Usage

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

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

resource "forgejo_organization" "defaults" {
  name = "tftest_org_defaults"
}
output "debug_defaults" {
  value = forgejo_organization.defaults
}

resource "forgejo_organization" "non_defaults" {
  name        = "tftest_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"
}
output "debug_non_defaults" {
  value = forgejo_organization.non_defaults
}

Schema

Required

  • name (String) Name of the organization.

Optional

  • description (String) Description of the organization.
  • full_name (String) Full name of the organization.
  • location (String) Location of the organization.
  • 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.