> For the complete documentation index, see [llms.txt](https://ai-docs.fptcloud.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ai-docs.fptcloud.com/ai-factory-guideline-jp/other/terraform/settoappu.md).

# セットアップ

#### システム要件&#x20;

* オペレーティングシステム：Terraform は、Linux、macOS、Windows などのさまざまなオペレーティングシステムをサポートしています。&#x20;
* バージョン：Terraform の最新バージョンで、ご利用のクラウドサービスプロバイダとの互換性を確認してください。&#x20;
* インターネットアクセス：Terraform およびプラグインをダウンロードするため。&#x20;

#### Terraform のインストール&#x20;

**macOS 上で:**&#x20;

* Homebrew を使用する場合：&#x20;

```
brew tap hashicorp/tap 
brew install hashicorp/tap/terraform 
```

**Ubuntuの場合：**&#x20;

```
sudo apt-get update && sudo apt-get install -y gnupg software-properties-common curl 
 
curl -fsSL 
https://apt.releases.hashicorp.com/gpg
 | sudo apt-key add - 
 
sudo apt-add-repository "deb [arch=amd64] 
https://apt.releases.hashicorp.com
 $(lsb_release -cs) main" 
 
sudo apt-get update && sudo apt-get install terraform 
```

**Windows の場合：**&#x20;

* Terraform ダウンロードページからダウンロードしてください。&#x20;
* ファイルを解凍し、Terraform のパスを PATH 環境変数に追加します。&#x20;

#### 設定の確認&#x20;

* Terraform のバージョンを確認します。&#x20;

```
terraform -v 
```

#### FptCloud で Terraform を使用するためのトークンの取得方法 &#x20;

サイドバーに移動し、「トークン」を選択します。&#x20;

<figure><img src="https://3391344305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMGAUMHLFxqEa9L8vyA1W%2Fuploads%2FyAZZoIH4y2cvBK9gKnpR%2Fimage.png?alt=media&amp;token=725bff34-73f0-4ac8-8bf9-a056e659ef03" alt=""><figcaption></figcaption></figure>

#### FPT Cloud Provider の初期化&#x20;

* Terraform ページで FPT Cloud Provider のバージョンとインストール手順を確認する：&#x20;

<figure><img src="https://3391344305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMGAUMHLFxqEa9L8vyA1W%2Fuploads%2FEa4FoGKsNohGC1nVQKj0%2Fimage.png?alt=media&amp;token=38c3d7b5-67f7-45ee-836f-313127878dab" alt=""><figcaption></figcaption></figure>

「terraform init」コマンドを使用して FPT Cloud Provider をインストールします。

<figure><img src="https://3391344305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMGAUMHLFxqEa9L8vyA1W%2Fuploads%2FMr73PHfnxBAFoKL3zEk9%2Fimage.png?alt=media&amp;token=f96a0ca5-2c12-44a1-a3e0-ae770402eab6" alt=""><figcaption></figcaption></figure>

FPT Cloud 接続スクリプト：

<figure><img src="https://3391344305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMGAUMHLFxqEa9L8vyA1W%2Fuploads%2FPgsjn3DRRBiBZOMHi3Gt%2Fimage.png?alt=media&amp;token=dc790415-38b3-4f8c-833c-bcc6a7b45fc7" alt=""><figcaption></figcaption></figure>

FPT Cloud に接続するためのアクセストークンを作成します。

<figure><img src="https://3391344305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMGAUMHLFxqEa9L8vyA1W%2Fuploads%2Fiq2GJenfwg3ZnfEvMsmd%2Fimage.png?alt=media&amp;token=0c4f18d0-a300-4aab-9c61-1f776b0c0c1f" alt=""><figcaption></figcaption></figure>

アクセストークンを使用して FPT Cloud に接続します。

<figure><img src="https://3391344305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMGAUMHLFxqEa9L8vyA1W%2Fuploads%2FPKYHPDecupMwi1TF1HB6%2Fimage.png?alt=media&amp;token=5668ce98-eb1e-40b2-8a3e-2da460e90f29" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://ai-docs.fptcloud.com/ai-factory-guideline-jp/other/terraform/settoappu.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
