First, begin with the definition of a Chef Resource. A Chef Resource describes a piece of an operating system at its desired state. It is a configuration policy statement that is used for representing the desired state of a node to which you want to take the current configuration for using the resource providers.
The functions of a Chef Resource are listed below:
It helps to know the present status of the target machine.
Defines the steps needed to perform for getting the target machine to the desired state.
Specifies resource types such as template, package, file, or service.