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 $(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
5. Initialize FPT Cloud Provider
- Check the version and installation instructions for the FPT Cloud Provider on the Terraform page:
- Use the "terraform init" command to install the FPT Cloud Provider:
- FPT Cloud connection script:
- Create an access token to connect to FPT Cloud:
- Use the access token to connect to FPT Cloud:
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.