AWS Credential-less discovery failing with latest pattern plugin - 1.8.0DescriptionYou note that after upgrading Patterns store app that creating a new credential-less service account through the Cloud Discovery wizard UI failsSteps to Reproduce 1. On latest instance install pattern plugin with version :1.3.02. Configure a IAM instance profile based mid server3. Go to discovery -> home page and perform test account.4. Test account should be successful.5. Go to plugins page and upgrade pattern plugin to 1.8.06. Now perform the test account again.7. Test account will fail with the below error :"Required credential OR accessor account and access role name for validating service account."WorkaroundMID server script include "AwsApiCommand" can be reverted, changing the line from: var isMasterAccount = serviceAccount.get(0).get('is_master_account') == 'true', optMasterCred; to: var isMasterAccount = (serviceAccount.get(0).get('is_master_account') == 'true') || JSUtil.nil(serviceAccount.get(0).get('parent_account')), optMasterCred; NOTE: The following use case will be lost with revert: - Parent Account P with Accessor defined as Member Account M1- Member Account M2 with Parent defined as P- IAM Instance Profile on MID selected for any account other than M2 (ex: M1)- Run discovery on M2 === Alternatively, new credential-less service accounts can be created manually in the cmdb_ci_cloud_service_account table instead of through the Cloud Discovery wizard without reverting, pending a permanent fix.Related Problem: PRB1710122