mirror of
https://github.com/HackTricks-wiki/hacktricks-cloud.git
synced 2025-12-23 07:29:04 -08:00
74 lines
4.0 KiB
Markdown
74 lines
4.0 KiB
Markdown
# AWS - Organizations Enum
|
|
|
|
{% hint style="success" %}
|
|
Learn & practice AWS Hacking:<img src="../../../.gitbook/assets/image (1) (1) (1) (1).png" alt="" data-size="line">[**HackTricks Training AWS Red Team Expert (ARTE)**](https://training.hacktricks.xyz/courses/arte)<img src="../../../.gitbook/assets/image (1) (1) (1) (1).png" alt="" data-size="line">\
|
|
Learn & practice GCP Hacking: <img src="../../../.gitbook/assets/image (2) (1).png" alt="" data-size="line">[**HackTricks Training GCP Red Team Expert (GRTE)**<img src="../../../.gitbook/assets/image (2) (1).png" alt="" data-size="line">](https://training.hacktricks.xyz/courses/grte)
|
|
|
|
<details>
|
|
|
|
<summary>Support HackTricks</summary>
|
|
|
|
* Check the [**subscription plans**](https://github.com/sponsors/carlospolop)!
|
|
* **Join the** 💬 [**Discord group**](https://discord.gg/hRep4RUj7f) or the [**telegram group**](https://t.me/peass) or **follow** us on **Twitter** 🐦 [**@hacktricks\_live**](https://twitter.com/hacktricks_live)**.**
|
|
* **Share hacking tricks by submitting PRs to the** [**HackTricks**](https://github.com/carlospolop/hacktricks) and [**HackTricks Cloud**](https://github.com/carlospolop/hacktricks-cloud) github repos.
|
|
|
|
</details>
|
|
{% endhint %}
|
|
|
|
## Baisc Information
|
|
|
|
AWS Organizations facilitates the creation of new AWS accounts without incurring additional costs. Resources can be allocated effortlessly, accounts can be efficiently grouped, and governance policies can be applied to individual accounts or groups, enhancing management and control within the organization.
|
|
|
|
Key Points:
|
|
|
|
* **New Account Creation**: AWS Organizations allows the creation of new AWS accounts without extra charges.
|
|
* **Resource Allocation**: It simplifies the process of allocating resources across the accounts.
|
|
* **Account Grouping**: Accounts can be grouped together, making management more streamlined.
|
|
* **Governance Policies**: Policies can be applied to accounts or groups of accounts, ensuring compliance and governance across the organization.
|
|
|
|
You can find more information in:
|
|
|
|
{% content-ref url="../aws-basic-information/" %}
|
|
[aws-basic-information](../aws-basic-information/)
|
|
{% endcontent-ref %}
|
|
|
|
```bash
|
|
# Get Org
|
|
aws organizations describe-organization
|
|
aws organizations list-roots
|
|
|
|
# Get OUs, from root and from other OUs
|
|
aws organizations list-organizational-units-for-parent --parent-id r-lalala
|
|
aws organizations list-organizational-units-for-parent --parent-id ou-n8s9-8nzv3a5y
|
|
|
|
# Get accounts
|
|
## List all the accounts without caring about the parent
|
|
aws organizations list-accounts
|
|
## Accounts from a parent
|
|
aws organizations list-accounts-for-parent --parent-id r-lalala
|
|
aws organizations list-accounts-for-parent --parent-id ou-n8s9-8nzv3a5y
|
|
|
|
# Get basic account info
|
|
## You need the permission iam:GetAccountSummary
|
|
aws iam get-account-summary
|
|
```
|
|
|
|
## References
|
|
|
|
* https://aws.amazon.com/organizations/
|
|
|
|
{% hint style="success" %}
|
|
Learn & practice AWS Hacking:<img src="../../../.gitbook/assets/image (1) (1) (1) (1).png" alt="" data-size="line">[**HackTricks Training AWS Red Team Expert (ARTE)**](https://training.hacktricks.xyz/courses/arte)<img src="../../../.gitbook/assets/image (1) (1) (1) (1).png" alt="" data-size="line">\
|
|
Learn & practice GCP Hacking: <img src="../../../.gitbook/assets/image (2) (1).png" alt="" data-size="line">[**HackTricks Training GCP Red Team Expert (GRTE)**<img src="../../../.gitbook/assets/image (2) (1).png" alt="" data-size="line">](https://training.hacktricks.xyz/courses/grte)
|
|
|
|
<details>
|
|
|
|
<summary>Support HackTricks</summary>
|
|
|
|
* Check the [**subscription plans**](https://github.com/sponsors/carlospolop)!
|
|
* **Join the** 💬 [**Discord group**](https://discord.gg/hRep4RUj7f) or the [**telegram group**](https://t.me/peass) or **follow** us on **Twitter** 🐦 [**@hacktricks\_live**](https://twitter.com/hacktricks_live)**.**
|
|
* **Share hacking tricks by submitting PRs to the** [**HackTricks**](https://github.com/carlospolop/hacktricks) and [**HackTricks Cloud**](https://github.com/carlospolop/hacktricks-cloud) github repos.
|
|
|
|
</details>
|
|
{% endhint %}
|