- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2023 08:39 AM
Hi everyone,
I need to remove only (AppSvc# Problem, BusApp# Problem) tags from Cloud resource table where Resource type is AWS::Config::Resource Compliance on multiple records with fix script.
Thanks for suggestions
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2023 04:47 AM
Hi @venugopal s
Try below script. highlighted changes done:
Thank you,
Ali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2023 10:37 AM
Hello @venugopal s
You can query Cloud resource table with condition as "Resource type is AWS::Config::Resource Compliance AND tags contain AppSvc# Problem OR tags contain BusApp# Problem". Then for each cloud record, you can query the table label_entry with condition as "Table Key is Cloud resource sys_id AND Label is AppSvc# Problem OR Label is BusApp# Problem". then delete those records in label_entry table.
Note: Label field in label_entry is reference to label table. so you need to get sys_id of the labels.
in short, label table contains tags and label_entry table contains which tag is added to which record. so you should be able to query label_entry table and delete records there.
Thank you,
Ali
Thank you,
Ali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2023 12:17 AM - edited 04-06-2023 12:19 AM
Hi @Ahmmed Ali
I have written script, seems it not getting exact result
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2023 04:47 AM
Hi @venugopal s
Try below script. highlighted changes done:
Thank you,
Ali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2023 06:00 AM
Thanks for the solution
