> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devinenterprise.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Terraform Provider

> 公式TerraformプロバイダーでDevinリソースをInfrastructure as Codeとして管理

公式のDevin Terraformプロバイダーを使用すると、DevinリソースをInfrastructure as Codeとして管理できます。このプロバイダーは、組織、Git 権限、プレイブック、Knowledgeノート、シークレット、スケジュール、IPアクセスリスト、IdPグループのロールマッピングなど、v3 APIリソースをサポートしています。

```hcl theme={null}
terraform {
  required_providers {
    devin = {
      source = "registry.terraform.io/cognitionai/devin"
    }
  }
}

provider "devin" {
  # トークンはデフォルトで DEVIN_TOKEN 環境変数から読み取られます。
}

resource "devin_knowledge_note" "conventions" {
  org_id  = "org-abc123"
  name    = "API Conventions"
  body    = file("knowledge/api-conventions.md")
  trigger = "When working on API endpoints"
}
```

プロバイダーは、`DEVIN_TOKEN` 環境変数を介して、`cog_` プレフィックスが付いたサービスユーザー認証情報で認証を行います。認証情報の発行方法については、[Authentication](/ja/api-reference/authentication)を参照してください。

<div id="learn-more">
  ## 詳細情報
</div>

<CardGroup cols={2}>
  <Card title="Terraform Registry" icon="cube" href="https://registry.terraform.io/providers/cognitionai/devin/latest/docs">
    プロバイダーの完全なドキュメント (設定、リソース、データソース) 。
  </Card>

  <Card title="GitHub リポジトリ" icon="github" href="https://github.com/CognitionAI/terraform-provider-devin">
    プロバイダーのソースコード。
  </Card>
</CardGroup>
