Terraform Cloud Project Bootcamp with Andrew Brown ??? 2.5.0 Deploying to Terratowns

1. Deploy to Missingo

In the previous episode, we were testing the environment locally in Gitpod workspace. Now we want to deploy our terratown_homes to actual TerraTown. The town Missingo is a test town for campers to test-deploy our homes. Let’s do this.

The first thing we do is to update the URL endpoint for the terratowns provider in main.tf.

provider "terratowns" {
-  endpoint  = "http://localhost:4567/api"
+  endpoint  = "https://terratowns.cloud/api"
   user_uuid = "e328f4ab-b99f-421c-84c9-4ccea042c7d1"
   token     = "9b49b3fb-b8e9-483c-b703-97ba88eef8e0"
}

Then we replace the mock user_uuid and token with our own. You can find your own User UUID in the access token on ExamPro.co website.

  • user_uuid: click on your profile circle at the top-right corner.
  • token: from that circle, you have the top-down menu. Click on Settings. Then you will have the Vending Machine option. There, you can generate your own access token.

Click Here