> 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/other/terraform/setup.md).

# Setup

#### 1. System Requirements

* Operating System: Terraform supports multiple operating systems such as Linux, macOS, and Windows.
* Version: The latest version of Terraform, ensuring compatibility with the cloud service providers you are using.
* Internet access: To download Terraform and plugins.

#### 2. Installing Terraform

**On macOS:**

* Using Homebrew:

brew tap hashicorp/tapbrew install hashicorp/tap/terraform

**On Ubuntu:**

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](https://apt.releases.hashicorp.com/) $(lsb\_release -cs) main"

sudo apt-get update && sudo apt-get install terraform

**On Windows:**

* Download from the Terraform Download Page.
* Extract the file and add the Terraform path to the PATH environment variable.

#### 3. Check Installation

* Check the Terraform version:

terraform -v

#### 4. How to obtain the token for FptCloud Terraform

Go to Sidebar -> select Token

![A screenshot of a computer screen Description automatically generated](https://content.gitbook.com/content/2FDB5fvsiFxYI972UDTv/blobs/X1IMMKJuOv3uLD6mEG6A/Unknown%20image)

#### 5. Initialize FPT Cloud Provider

* Check the version and installation instructions for the FPT Cloud Provider on the Terraform page:

![](https://content.gitbook.com/content/2FDB5fvsiFxYI972UDTv/blobs/qaK78Pc5JsFUf1mtPv17/Unknown%20image)

* Use the "terraform init" command to install the FPT Cloud Provider:

![](https://content.gitbook.com/content/2FDB5fvsiFxYI972UDTv/blobs/7HMclPiiNGGjicELrAgl/Unknown%20image)

* FPT Cloud connection script:

![](https://content.gitbook.com/content/2FDB5fvsiFxYI972UDTv/blobs/82TbQflxM2MS4Ya8JmrT/Unknown%20image)

* Create an access token to connect to FPT Cloud:

![](https://content.gitbook.com/content/2FDB5fvsiFxYI972UDTv/blobs/hqd380cBF5S9KOpDGb76/Unknown%20image)

* Use the access token to connect to FPT Cloud:

![](https://content.gitbook.com/content/2FDB5fvsiFxYI972UDTv/blobs/lHIhmVzRbvsXZKfouFt4/Unknown%20image)


---

# 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/other/terraform/setup.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.
