Is it possible to query the Terraform state reliably to identify the most recently created resource of a given type?
In my use case, I have a CI/CD pipeline deploying resources via "terraform apply", I would like to identify the last resource created (virtual machine) and kick off another pipeline to carry out non-terraform configuration on that virtual server.