# Manage Terraform infrastructure

You can use Workflows in Cortex to manage different aspects of Terraform infrastructure, including provisioning cloud resources, maintaining the resources, and destroying the resource to remove it from your Cortex workspace.

Handling these processes via a Workflow allows you to:

* **Automate infrastructure provisioning**: Use a Workflow to trigger the creation of cloud resources (such as AWS EC2 instances) by updating Terraform variables and executing runs
* **Enable self-service infrastructure requests**: Using a Workflow to streamline Terraform processes, organizations can enable self-service provisioning for developers.
* **Standardize environment bootstrapping:** Using the Scaffolder, teams can bootstrap new projects or environments with pre-defined Terraform templates, ensuring consistency and compliance with organizational standards.

See end-to-end Workflow examples in the following pages:

* [Provision EC2 instance with Terraform](/guides/production-readiness/terraform/provision.md)
* [Update EC2 instance](/guides/production-readiness/terraform/update.md)
* [Terraform destroy](/guides/production-readiness/terraform/destroy.md)


---

# 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.cortex.io/guides/production-readiness/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.
