# Create IAM policy

1. Navigate to IAM in the AWS console

![](/files/VzSluE90Szq55PBGbaIu)

2. Under **Access management** in the sidebar menu click **Policies**

![](/files/KNguJUDyKgA0VX9MyCIh)

3. Click **Create policy**

![](/files/BbVsjJwRcWoVFdX0kqlH)

4. Select the **JSON** tab and delete the default text.
5. Copy and paste in the JSON below. Replace `<sqs arn>` with the SQS ARN you saved in an earlier step.\
   Using the example from this document `<sqs arn>` would be replaced with `arn:aws:sqs:us-east-2:307946633993:netflow1-queue`. Replace `<bucketname>` with your S3 bucket name created in a previous step.

{% tabs %}
{% tab title="JSON" %}

```json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "VisualEditor0",
      "Effect": "Allow",
      "Action": [
        "sqs:DeleteMessage",
        "sqs:GetQueueUrl",
        "sqs:ReceiveMessage",
        "sqs:GetQueueAttributes",
        "s3:ListBucket*",
        "s3:GetObject*",
        "s3:DeleteObject*"
      ],
      "Resource": [
        "<sqs arn>",
        "arn:aws:s3:::<bucketname>/*",
        "arn:aws:s3:::<bucketname>"
      ]
    }
  ]
}
```

{% endtab %}
{% endtabs %}

6. The result should look like the following

![](/files/ve7rU4gBPPxFDFlQTosY)

7. Click **Next**

![](/files/rouACNmgOuzoUyfBHuhF)

8. Give the policy a name

![](/files/VyJrOLlXKCq6MRp7gP5y)

9. Click **Create policy**

![](/files/zh85Uwtbk3YL2zjA6E0V)


---

# 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.fusion.vectra.ai/quick-start/quickstart-aws/create-iam-policy.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.
