# 3.2 Terraform validate & plan

{% embed url="<https://beta-terraforge-public-assets.s3.amazonaws.com/aws-stack-3.2-terraform-validate-plan.mp4>" %}

## Steps

1. Switch to the **Configuration** tab
2. Click **+ ADD CONFIG**, set **Environment** to `sandbox` , **aws\_region** to `"us-east-1"`and click **ADD**
3. At the screen bottom is the Terraform Console, select **VALIDATE** and press run
   1. Terraforge now runs CLI command `terraform validate` on your stack
4. Press the **+** on the right side of the Terraform Console to view the console output
5. Select **PLAN**, the configuration **tutorial** and press run
   1. You will be prompted to enter **AWS\_SECRET\_ACCESS\_KEY**, enter the **Secret access key** from the `tutorial` user created via AWS Console
   2. Terraforge now runs the CLI command `terraform init` and `terraform plan` on your stack in your AWS account
6. Press the **+** on the right side of the Terraform Console and click the **Fullscreen** button in black area to view the console output

{% hint style="danger" %}
Terraforge does **NOT** store any AWS credentials or values prompted after PLAN or APPLY!&#x20;
{% endhint %}


---

# 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.terraforge.io/tutorials/aws-stack/3-terraform-aws-stack-ecr/3.2-terraform-validate-and-plan.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.
