# 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](/files/c6e15032a476d2ad98abef7b3e051d253fd4b057)

#### 5. Initialize FPT Cloud Provider

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

![](/files/d42e2b0c45ffa0b1261fbd39d13100c82438651c)

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

![](/files/7de655e84adaee038175eb3e0797641ab96fd3f4)

* FPT Cloud connection script:

![](/files/bf95ef02d4716585d7249c8c747b2f956432ce14)

* Create an access token to connect to FPT Cloud:

![](/files/73d910656474271dc7471c5e67952816d6edb755)

* Use the access token to connect to FPT Cloud:

![](/files/1f1464874d0c43114c79689c5bf7bdc43b54d1fd)


---

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