# セットアップ

#### システム要件&#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="/files/vZmWwJOTjbZuKXx03Lfg" alt=""><figcaption></figcaption></figure>

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

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

<figure><img src="/files/wYdoM4KlKHk7XArIVLoU" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/pc1MRKxkdqS4ZIVDzWOE" alt=""><figcaption></figcaption></figure>

FPT Cloud 接続スクリプト：

<figure><img src="/files/DULfabfqPzgcjH3os51P" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/UpsRQnzsep3EmhPCQUQ9" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/PfwiklkAqRd4ZDB95p5Q" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

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

The question should be specific, self-contained, and written in natural language.
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.
