# Configuratie van de Cloud-scan: AWS

{% hint style="warning" %}
Vereisten:

* Service Control Policies (SCP's) moeten op organisatieniveau in AWS worden geconfigureerd met behulp van een beheerdersaccount.
* Een technisch adviseur is vereist voor doorlopend toezicht en het verhelpen van kwetsbaarheden.
  {% endhint %}

{% stepper %}
{% step %}

### Selecteer Amazon Web Services

Ga naar `Cloud Scan` > `Instellingen`, klik op `Nieuwe provider`, en selecteer `AWS`.

<figure><img src="/files/77fd246f142bcc56046537251d256ca7fa4541fc" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Maak een nieuw beleid

<figure><img src="/files/f3cf04d13a68197dc96512ca53fe562bc4971f08" alt=""><figcaption></figcaption></figure>

#### Configureer het beleid

1. Ga naar het [AWS-beleidsmaker](https://console.aws.amazon.com/iam/home?#/policies$new?step=edit) en meld u aan met uw beheerdersaccount.
2. Klik op de `JSON` tabblad en plak het volgende beleid in de editor:

```json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "ecr:BatchGetRepositoryScanningConfiguration",
        "ecr:DescribeImageScanFindings",
        "ecr:DescribeImages",
        "dynamodb:ListTagsOfResource",
        "ecr:ListTagsForResource",
        "inspector2:BatchGet*",
        "inspector2:Get*",
        "inspector2:Describe*",
        "inspector2:List*",
        "sqs:ListQueueTags",
        "sso:Describe*",
        "sso:List*"
      ],
      "Resource": "*"
    },
    {
      "Effect": "Deny",
      "Action": [
        "datapipeline:EvaluateExpression",
        "datapipeline:QueryObjects",
        "rds:DownloadDBLogFilePortion"
      ],
      "Resource": "*"
    }
  ]
}
```

3. Klik op `Volgende`.

<figure><img src="/files/ef86eeda818117b23f9e8d5a1cacbcf1731a89d5" alt=""><figcaption></figcaption></figure>

#### Sla het beleid op

1. Geef het beleid een naam `StoikAdditionalPermissions`.
2. Klik op `Beleid maken`.

<figure><img src="/files/cadafa76cf02a80b565c5d0a0ae824d241f8dcc6" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/0b7026909d134a72eea5594c8b521b75ea1d581d" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Maak een nieuwe rol

<figure><img src="/files/cca09f9e6fb15cbc8df77d282860496764b02d73" alt=""><figcaption></figcaption></figure>

#### Configureer de vertrouwensrelatie van de rol

1. Ga naar het [AWS-rolmaker](https://us-east-1.console.aws.amazon.com/iamv2/home#/roles/create?step=selectEntities).
2. Klik op `AWS-account`, vervolgens `Een ander AWS-account`, en voer de volgende account-ID in:

```
436578779424
```

3. Selecteren `Vereis externe ID` en kopieer de waarde die wordt weergegeven in de Stoïk Protect-console.
4. Klik op `Volgende`.

<figure><img src="/files/3c4a57bd5a42916136ee34f68ef2389d2bbd8338" alt=""><figcaption></figcaption></figure>

#### Wijs machtigingen toe en rond af

1. Selecteren `StoikAdditionalPermissions` en `SecurityAudit` als machtigingen.
2. Klik op `Volgende`.
3. Voer in `stoik-auditor` als rolnaam.
4. Klik op `Maak rol aan`.

<figure><img src="/files/18c5905132dce2175ca4931e8e2701d4689f10c1" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/9caf9e29981cba78203fd4fb08fc9381ee05dac4" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/f50331b688f0e7373def837a2bce734e8c8611ba" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Voeg een ARN-identificatie toe

<figure><img src="/files/98df3d27e872f10ddd34ed6881862314014ef7db" alt=""><figcaption></figcaption></figure>

1. Ga naar het `stoik-auditor` rol die u zojuist hebt gemaakt.
2. Kopieer de `ARN` referentie.

<figure><img src="/files/ffc81c1806ab1eb8d5c6dfedd5edd6baf5f570e5" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/f92101524090eb6b70f322d38ecc57d737020d2d" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Voltooi de configuratie

1. Plak de `ARN` referentie in het daarvoor bestemde veld in de Stoïk Protect-console.
2. Klik op `Voltooi de configuratie`.

{% hint style="info" %}
Vernieuw de Stoïk Protect-pagina indien nodig.
{% endhint %}
{% endstep %}
{% endstepper %}


---

# 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.stoik.io/help/help-nl/preventietools/what-is-the-cloud-scan/cloud-scan-setup-aws.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.
