# Enumerate AWS Organization ID

## Methods to Enumerate AWS Organization ID

### Using an S3 Bucket Name

* Knowing the name of an AWS S3 bucket, we can use [conditional-love](https://github.com/plerionhq/conditional-love) to identify the organization ID
* The bucket <mark style="color:red;">must be public</mark> or otherwise accessible by the IAM Role used&#x20;

{% code overflow="wrap" %}

```bash
./conditional-love.py --profile dev --role arn:aws:iam::111111111111:role/s3-cracker --target tylerguessmyorg --action=s3:HeadObject --condition=aws:ResourceOrgID --alphabet=abcdefghijklmnopqrstuvwxyz-

Starting to be wrong. Please be patient...
=> o
=> o-
=> o-a
=> o-ab
=> o-abe
=> o-abek
=> o-abekz
```

{% endcode %}


---

# 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://www.techwithtyler.dev/cloud-security/aws/aws-offensive-security/aws-attacks-and-techniques/enumerate-aws-organization-id.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.
