Thanks for the response Seth. As suggested, I changed data['id'] to data['name'] in SCDecomm.sls and I get the desired result when I use salt-cloud to destroy an instance.
I forgot to mention in my original post that I tried to start eventlisten.py but ended up with this error:
[root@salt-use1a-prod ~]# python eventlisten.py
Exception AttributeError: "'SaltEvent' object has no attribute 'cpub'" in <bound method SaltEvent.__del__ of <salt.utils.event.SaltEvent object at 0x7f7cc8b02190>> ignored
Traceback (most recent call last):
File "eventlisten.py", line 102, in <module>
listen(opts)
File "eventlisten.py", line 74, in listen
opts
TypeError: __init__() takes at most 3 arguments (4 given)
I am a Python newbie as well so I don't know what the message is telling me. Am I missing something?
It would be nice to get this working as I play more with the Reactor.
One more question... where do I find a list of all the available data['xxx'] variables? So far I have been doing copy/paste development. Would be nice to know what is available without having to find an example reactor sls file that uses it. ;-)
Thanks,
Steve.