Skip to content

Latest commit

 

History

History
68 lines (54 loc) · 1.59 KB

organization.md

File metadata and controls

68 lines (54 loc) · 1.59 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"
}

# Organization with default settings
resource "forgejo_organization" "defaults" {
  name = "test_org_defaults"
}
output "debug_defaults" {
  value = forgejo_organization.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"
}
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.