Im looking for a way to dynamically fill in the "apply_to_accounts_in_ou" section.
In other words, I would like to use the awscli to get all the OUs I want for the "apply_to_accountd_in_ou" section.
So technically, this command will return me all the OUs with "Prod" in the name :
aws organizations list-organizational-units-for-parent --parent-id XXXXX --query "OrganizationalUnits[*].[Name]" --output text | grep Prod
Then I would like tu use this list in my manifest.yaml file but I don't know how to reference it!
I tried things like "$ref file.js" or "!include file.js" but it doesn't work.
Any experience on that ?
Cheers,
Thomas
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Derek,
Im looking for a way to dynamically fill in the "apply_to_accounts_in_ou" section.
In other words, I would like to use the awscli to get all the OUs I want for the "apply_to_accountd_in_ou" section.
So technically, this command will return me all the OUs with "Prod" in the name :
aws organizations list-organizational-units-for-parent --parent-id XXXXX --query "OrganizationalUnits[*].[Name]" --output text | grep Prod
Then I would like tu use this list in my manifest.yaml file but I don't know how to reference it!
I tried things like "$ref file.js" or "!include file.js" but it doesn't work.
Any experience on that ?
Cheers,
Thomas