Cloud Discovery - AWS - ListAccountAliases

DavidT
Tera Contributor

Hello

 

in the Cloud Discovery product, for AWS provider, anyone already successfully get the data from the ListAccountAliases aws API?

 

I never developped any pattern and I struggling to create one for this. (and i'm not sn dev)

I copied the route53 pattern (as both are independent from the datacenter), and created the same parameters for the orchestrator (to be triggered from sub account pattern)

 

It is triggered but the api call fails with a generic

Exception occurred while executing operation Cloud REST - add response to context. Custom operation Failed to run script due to the following error: JAVASCRIPT_CODE_FAILURE: Cannot convert null to an object.. Custom operation Failed to run script due to the following error: JAVASCRIPT_CODE_FAILURE: Cannot convert null to an object.

 

I based my call onto:

https://docs.aws.amazon.com/IAM/latest/APIReference/API_ListAccountAliases.html#API_ListAccountAlias...

 

any idea?

 

thanks!

D.

2 REPLIES 2

AJ-TechTrek
Giga Sage
Giga Sage

Hi @DavidT 

 

Refer below Resource, Might help to resolve your issue.

 

https://docs.aws.amazon.com/IAM/latest/APIReference/API_ListAccountAliases.html

 

Please appreciate the efforts of community contributors by marking appropriate response as Mark my Answer Helpful or Accept Solution this may help other community users to follow correct solution in future.

 

Thanks

AJ

Linkedin Profile:- https://www.linkedin.com/in/ajay-kumar-66a91385/

DavidT
Tera Contributor

hello,

 

the link you provide is in my initial post ...

 

it appears the problem is in the new pattern construction. For some reason the account id is not pushed correctly from the Sub account pattern ; that's why the api call fails, there is no account provided (the null value in the error message)

 

it's the first time I try to create a pattern, may be I missed something.