By now, you already know that it is not possible to define two resources in the same template having the same name. This means that if we define a resource in the template and later in the deployment execution we want to change any of its configurations, then it is not possible to do this.
The first question that might arise is why we cannot configure the resource with the end state, rather than reconfiguring. This is because there are situations, as we learned in the previous section, where it might not be possible to have all the values at the time of deployment; however, as template execution progresses and resources generate additional information, some of the resources might need reconfiguration.
Let's understand this concept with the help of an example. Imagine we are creating a virtual machine using templates on an existing...