Trying to find ansible module what I can use in my playbook to fetch AWS existing account names (AWS Organization)? is there any info module I can use to fetch AWS existing account names or can I use uri module to fetch the account names?
@Titli You can refer these documentation for the same :
https://docs.ansible.com/ansible/latest/collections/amazon/aws/aws_caller_info_module.html
https://docs.aws.amazon.com/organizations/latest/APIReference/API_ListAccounts.html?
these docs are not helpfull for my requirement.
I want to fetch all the AWS account names which are already existing in our aws Organization in my playbook using ansible module. So that if any new AWSaccount creation request comes and the name of the account is already present, my playbook will return error (invalid account name)
Do we have any aws_organizations_info module what I can use? if not how can I use
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.