# Terraform

The Action **Execute Terraform Command** allows you to run your Terraform scripts inside an unSkript xRunBook.

### Add & Configure the Action

Add the Action to your xRunBook by searching for **Execute Terraform Command**  and dragging the Action into your xRunBook.

Click the Configuration button to set up your Action. There are four parameters you must add:

1. **Credential**: Add the Cloud credential (AWS, GCP) that has access to perform the Terraform action in your Cloud.
2. **Git repository**: Enter the `.git` url for your Terraform script repository, e.g. <https://github.com/unskript/Awesome-CloudOps-Automation.git>. This field is **required**.
3. **Directory Path**: The path in your Git repo where your script resides.  This field is **optional**.
4. **Terraform Command**: Enter the command to be executed. This field is **required**.


---

# 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://docs.unskript.com/unskript-documentation/connnecting/connectors/terraform.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.
