# Update a AWS Terraform for your Workspace

Workspace updates will be released by e6data to provide new features, improvements, optimization, and bug fixes.

## How to Apply Updates

1. Obtain the latest Terraform files from the `e6x-labs/terraform` repo from [Github](https://github.com/e6x-labs/terraform).
2. Navigate to the directory containing the Terraform files. It is essential to be in the correct directory for the Terraform commands to execute successfully.
3. Configure the `terraform.tfvars` & `provider.tf` files, to match the same details filled out during the initial Workspace installation.
4. Initialize Terraform:

   `terraform init`
5. Generate a Terraform plan and save it to a file (e.g., `e6.plan`):

   `terraform plan -var-file="terraform.tfvars" --out="e6.plan"`

   The `-var-file` flag specifies the input variable file (`terraform.tfvars`) that contains the necessary configuration values for the deployment.
6. Review the generated plan.
7. Apply the changes using the generated plan file:

   `terraform apply "e6.plan"`

   This command applies the changes specified in the plan file (e6.plan) to deploy the e6data workspace in your environment.
8. Make note of the values returned by the script.
9. Navigate to **Workspaces** in the e6data Console
10. Click the name of the Workspace being updated
11. Click **Update Workspace**
12. Enter the new values returned in step 8.
13. Click **Update**


---

# 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.e6data.com/product-documentation/setup/aws-setup/in-vpc-deployment-aws/setup-using-terraform-in-aws/update-a-aws-terraform-for-your-workspace.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.
