Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add name of OU to returned values of each account #7

Conversation

valkiriaaquatica
Copy link

SUMMARY
have added to return values of each account the OU where each account belongs to. This meakes easier to form keyed_groups based on their OU

ISSUE TYPE
add feature

COMPONENT NAME
organization

CHANGE EXPLAINED

Return values with new ou parameter

      "156518561546": {
          "arn": "arn:aws:organizations::455dsdsd45:account/dsefde/156518561546",
          "email": "[email protected]",
          "id": "45464656",
          "joined_method": "INVITED",
          "joined_timestamp": "2045-08-28T22:31:0894245000+00:00",
          "name": "account_name,
          "ou": "Security",
          "status": "SUSPENDED",
          "tags": {}
      },
plugin: community.aws.organization
regions:
  - us-east-1
profile: "testing"

keyed_groups:
  - key: ou   
    prefix: ou
    separator: ""

Result

    "ouSecurity": {
        "hosts": [
            "156518561546",
            "541864256148"
        ]
    },

Now is easier to form groups depending on the OU of the account, using keyed_groups in the inventory
@valkiriaaquatica valkiriaaquatica closed this by deleting the head repository Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant