This code is based around a question posted on Twitter
- Log into Terraform Cloud using
terraform login. - Apply the three outputs in
main.tfusingterraform apply. - Execute
get-terraform-cloud-output-values.shto retrieve the output values through the TFC API.