How do I see the Service Account a cloud tag is associated with

Not applicable

Cloud tags show up in the cmdb_key_value table with a reference field for the Configuration Item, but I am having a hard time writing a CMDB query or report that will show the Service Account associated with that Tag.  We have over 100 AWS accounts and knowing which service account is having tags being used out of compliance is critical for our review process.

How do I relate records in cmdb_key_value table to cloud service accounts?

1 ACCEPTED SOLUTION

Not applicable

I was able to resolve this issue through building a Database View that tied the cmdb_key_value (key value) table up to the Cloud Service Account table via the Configuration Item that is in the cmdb_key_value table.

rel1 Where Clause: keyvalue.configuration_item = rel1.parent and rel1.type = "5f985e0ec0a8010e00a9714f2a172815"

rel2 Where Clause: rel1.child = rel2.parent and  rel1.type = "5f985e0ec0a8010e00a9714f2a172815"

ci Where Clause: rel2.child = ci.sys_id

And on the entry for cmdb_ci_cloud_service_account I included the fields for Account ID and Name.

 

this built a view that showed me all the pieces I need across all the tags discovered.

Key, Value, CI, Service Account Name, Service Account ID

 

View solution in original post

6 REPLIES 6

Shreya Jain1
Tera Guru

Did you do any customization to get tags for Cloud Service Accounts or is it supported OOB??

Regards,

Shreya

Hail
ServiceNow Employee
ServiceNow Employee

Hi

No, it should be part of latest pattern store App.

in cloud discovery definition, when retrieve all sub accounts, it gets also tags for them.

if not working using OOTB, need to open case to support to investigate and assign task to dev.

Hail