Performing general cloud functions
After the instances are launched, Salt cloud can help us perform a lot of cloud-specific functions on the instances. In this recipe, you will learn about a few such functions, and some resources where we can find more such options.
How to do it...
Execute the following command to get the tags associated with the instance:
[root@salt-master ~]# salt-cloud -y -a get_tags cookbookapp02 [INFO ] salt-cloud starting cloudopen_ec2_us_west_2: ---------- ec2: ---------- cookbookapp02: ---------- - key: Role - resourceId: i-e50d5ae9 - resourceType: instance - value: Application ---------- . . . ---------- - key: Environment - resourceId: i-e50d5ae9 - resourceType: instance - value: Production...