What is the best way to use AWS Tags to populate CMDB data?

awestra
Tera Contributor

We currently have a need to use our AWS tags to populate CMDB attributes for corresponding CI's. I've looked at many ways to do this. But I am wondering if anyone has done this? And what was the best way they found.

 

 

3 REPLIES 3

Asi Garty
ServiceNow Employee
ServiceNow Employee

Hi,

For some discovered CIs such as cmdb_ci_vm_instance we are collecting tags automatically.
For others it is planned to be added in future releases.
Until then, and considering you use discovery/service mapping you can enhance the specific pattern for the resource you collect to query tags using a REST call to AWS to retrieve tags. for instance: https://docs.aws.amazon.com/lambda/latest/dg/API_ListTags.html

Eventually you need to populate the table cmdb_key_value with your collected tags.

Asi

Jace Benson
Mega Sage

I know we're doing this for somethings.  Pretty much our pattern is, on insert/update of tag in an after BR for CI, update the CI field(s) appropriately.

pratiksha5
Mega Sage

Did you find solution for same?