https://github.com/stackexchange/terraform-provider-stackoverflow
Terraform Provider for Stack Overflow
https://github.com/stackexchange/terraform-provider-stackoverflow
Last synced: 5 months ago
JSON representation
Terraform Provider for Stack Overflow
- Host: GitHub
- URL: https://github.com/stackexchange/terraform-provider-stackoverflow
- Owner: StackExchange
- License: apache-2.0
- Created: 2023-03-27T19:01:19.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-09-04T13:31:03.000Z (5 months ago)
- Last Synced: 2025-09-16T05:35:52.269Z (5 months ago)
- Language: Go
- Homepage:
- Size: 91.8 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform Provider for Stack Overflow
The Terraform Provider for Stack Overflow is a Terraform plugin provider that allows you to manage questions, answers, and articles for your Stack Overflow for Teams.
## Using the Provider
---------------------
To use a released version of the Terraform provider in your environment, run `terraform init` and Terraform will automatically install the provider from the Terraform Registry. To specify a particular provider version when installing released providers, see the [Terraform documentation on provider versioning](https://www.terraform.io/docs/configuration/providers.html#version-provider-versions).
## Example
----------
```terraform
provider "stackoverflow" {
base_url = "https://api.stackoverflowteams.com/v3/teams/{team}/"
access_token = "xxxx"
}
resource "stackoverflow_article" "article" {
article_type = "announcement"
title = "Terraform Provider for Stack Overflow is available!"
body_markdown = "Look for the Stack Overflow provider in the Terraform registry"
tags = ["example"]
}
resource "stackoverflow_question" "question" {
title = "Stack Overflow Terraform Provider"
body_markdown = "What is the Terraform Provider for Stack Overflow?"
tags = ["example"]
}
resource "stackoverflow_answer" "answer" {
question_id = stackoverflow_question.question.id
body_markdown = "It is a Terraform plugin provider to manage resources in Stack Overflow for Teams"
}
```