cancel
Showing results for 
Search instead for 
Did you mean: 
Titli
Cadet
Cadet
  • 186 Views

ansible module to fetch AWS account display name

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?

Labels (1)
2 Replies
Titli
Cadet
Cadet
  • 168 Views

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 

ansible.builtin.uri module to call AWS Org and fetch all the existing accounts what comes under the AWS Organization?
Join the discussion
You must log in to join this conversation.