# How to Remediate findings

{% embed url="<https://youtu.be/br28m-trmG4>" %}

Remediation is the resolution of a finding (that may be a missing configuration or misconfiguration at the account level) that we get after evaluating certain rules against the account assets.

### 2 Ways to Remediate Findings

1. Manually through terraform script
2. Automatically from the CloudDefense platform

### 1. Manually through terraform script

#### Step 1: Got to the findings

<figure><img src="https://lh4.googleusercontent.com/ZORlYD7VICJKvuuOWZeAxXF-TKT2YY_IeDHYoI-7NKKngjmjdOWZ4AhVhoKNo9WAW9tOGRL6a64dgRnUDB0SJb1Yo6tlGYQo7EmjdbfPAbh3rCB-PLuiqLwadN-yy2Rk6tHH62tcgXVFxmFIbt_AdzpbQUG912QUBqEFyS1gkigRAkITusSwDNL6bVU3DA" alt=""><figcaption></figcaption></figure>

Once you go to the findings, on the right side, you will see *Remediate* button.

#### Step 2: Copy the Terraform Script

If you click remediate button, a new window will appear from the right with the ready-made Terraform script for you. You can just copy the script and then paste it.

### 2. Automatically from the CloudDefense platform&#x20;

If you want us to execute on your behalf, you can click on the checkbox.

Then you need to give these credentials. Once given, we will execute from our end.


---

# 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-acs.clouddefenseai.com/clouddefense-security-hub/compliance-findings/how-to-remediate-findings.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.
