Introduction
The Query feature is a powerful tool inside the Prancer platform that can be used to dig into the cloud configuration data and find the needed information from your infrastructure.
Prancer cloud Security platform enables you to connect to various API providers and Git repositories and convert the files in those repositories into a snapshot based on the JSON format. To have a better insight into your cloud resources, a query can be run to find the configuration you are looking for.
The query feature of the Prancer Cloud security platform is a powerful tool that enables you to find the detailed configuration of your environment, which can either be a live environment in the cloud or the Infrastructure as Code (IaC) codes in the Git repository.
How to use the Query feature
After logging in to the Prancer portal, the third item is the “Query” section on the left pane. When you browse to the page, many sample queries are available for you as the starting point; for example, when the item for the Azure network security group allowing SSH traffic is clicked, it automatically fills out the query section and the query can be run, and the results can be viewed. Moreover, you can view the configuration of the specific resource inside the Prancer platform by clicking on “View Snapshot”.
Prancer Platform queries are all compatible with the MongoDB query language. So, if you know the language, you can write a query from scratch or tweak an existing one from the query section. For example, you are changing the value of a port and rerunning the query after updating it.
Another example, If you want to find the virtual machines, you can use the sample query, tweak it, and then view the results. By clicking on “View Snapshot” and drilling down to the configuration, you can find out which values to modify the query based on the values in the snapshot.
The other powerful feature is while writing a query; you can save the query and use it later. You can give the saved query a name. When you need to use the query sometime in the future, you can load the query and run it again to get the latest results.
This powerful feature helps you to understand the infrastructure configuration in detail. It helps you with the IaC code available in your repository or cloud live resources and writing complex queries to find different resources.