You can do some CM in terraform also. You can do remote exec after it finishes like this:
provisioner "file" { source = "file.config" destination = "/etc/configs/file.confg" }'You can ouput info for Ansible (or others) from Terraform after it finishes. For example:
provisioner "local-exec" { command = "echo ${aws_instance.example.public_dns} >> inventory" } ouput "name" { value = "${aws_instance.example.public_dns}" }