AWS Master Account can only discover the first 30-40 Child Accounts due to Pagination only working on the first page.
The second page pattern sends a token for it to be invoked but token is incorrect.
The issue occurs in OOTB Pattern step "If pagination, get the rest of the batches" which generates error as below sample:
2019-05-27 10:51:53: Subaccounts list REST request failed. error=Cloud request failed. URL: https://organizations.us-east-1.amazonaws.com/ Status: 400 Server response: Response: HTTP/1.1 400 Bad Request [x-amzn-RequestId: 9e563c22-8019-11e9-9896-b9e126ea352d, Content-Type: application/x-amz-json-1.1, Content-Length: 35, Date: Mon, 27 May 2019 00:51:53 GMT, Connection: close]
Steps to Reproduce
Steps to Reproduce:
- Run "Refresh Member Accounts" from Master account
- Note that only 30-40 child accounts are updated
The fix would be available on Madrid Patch 3 and London Patch 8. Attached Pattern xml can also be used as workaround.
The workaround Pattern provides fix code with "token" in this step, see following code change comparison:
Related Problem: PRB1329202