When infrastructure is provisioned with Terraform, it is sometimes necessary to retrieve information about the already existing resources. Indeed, when deploying resources to a certain infrastructure, there is often a need to place ourselves in an existing infrastructure or link it to other resources that have already been provisioned.
In this recipe, we will learn how, in our Terraform configuration, to retrieve information about resources already present in an infrastructure.